summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2024-12-09 17:57:32 +0100
committerVolpeon <git@volpeon.ink>2024-12-09 17:57:32 +0100
commitdeb22a5c1b31c9b8cd4b6eb244b015cc6a1fbb88 (patch)
treec6c35d6ac8b8175fcde41d6e7d167b7132cbc8cc /src
downloadfurbase-design-2024-deb22a5c1b31c9b8cd4b6eb244b015cc6a1fbb88.tar.gz
furbase-design-2024-deb22a5c1b31c9b8cd4b6eb244b015cc6a1fbb88.tar.bz2
furbase-design-2024-deb22a5c1b31c9b8cd4b6eb244b015cc6a1fbb88.zip
Init
Diffstat (limited to 'src')
-rw-r--r--src/_common.scss12
-rw-r--r--src/_common.vars.scss8
-rw-r--r--src/_core.scss17
-rw-r--r--src/_core.vars.scss50
-rw-r--r--src/_header.scss16
-rw-r--r--src/dark.scss8
-rw-r--r--src/light.scss12
7 files changed, 123 insertions, 0 deletions
diff --git a/src/_common.scss b/src/_common.scss
new file mode 100644
index 0000000..f31fedb
--- /dev/null
+++ b/src/_common.scss
@@ -0,0 +1,12 @@
1@use 'sass:map';
2@use 'sass:meta';
3@use 'iro-sass/src/props';
4
5@use 'common.vars' as vars;
6@forward 'common.vars';
7
8@mixin styles {
9 :root {
10 @include props.materialize(map.values(meta.module-variables('vars')));
11 }
12}
diff --git a/src/_common.vars.scss b/src/_common.vars.scss
new file mode 100644
index 0000000..36008f9
--- /dev/null
+++ b/src/_common.vars.scss
@@ -0,0 +1,8 @@
1@use 'iro-sass/src/props';
2
3@use 'core';
4
5$wcfHeaderBackground: props.def(--wcfHeaderBackground, props.get(core.$theme, --base, --600));
6$wcfHeaderMenuBackground: props.def(--wcfHeaderMenuBackground, props.get(core.$theme, --base, --800));
7$wcfHeaderMenuLinkBackground: props.def(--wcfHeaderMenuLinkBackground, props.get(core.$theme, --base, --800));
8$wcfHeaderMenuLinkBackgroundActive: props.def(--wcfHeaderMenuLinkBackgroundActive, props.get(core.$theme, --base, --700));
diff --git a/src/_core.scss b/src/_core.scss
new file mode 100644
index 0000000..a99d147
--- /dev/null
+++ b/src/_core.scss
@@ -0,0 +1,17 @@
1@use 'sass:map';
2@use 'iro-sass/src/props';
3
4@use 'core.vars' as vars;
5@forward 'core.vars';
6
7@mixin styles--light {
8 :root {
9 @include props.materialize(map.get(vars.$themes, --light));
10 }
11}
12
13@mixin styles--dark {
14 :root {
15 @include props.materialize(map.get(vars.$themes, --dark));
16 }
17}
diff --git a/src/_core.vars.scss b/src/_core.vars.scss
new file mode 100644
index 0000000..65ebb65
--- /dev/null
+++ b/src/_core.vars.scss
@@ -0,0 +1,50 @@
1@use 'sass:list';
2@use 'sass:map';
3@use 'sass:math';
4@use 'iro-sass/src/props';
5@use 'iro-sass/src/easing';
6@use 'iro-design/src/functions' as fn;
7
8$themes-spec: (
9 --light: (
10 --levels: (
11 --grays: (
12 --50: (-16) .8 0,
13 --75: (-8) .9 0,
14 --100: (0) 1 0,
15
16 --200: (easing.cubic-bezier(.2, .1, .7, 1, math.div(1, 7)) * 87) (1 + 1 * math.div(1, 7)) (-30 * math.div(1, 7)),
17 --300: (easing.cubic-bezier(.2, .1, .7, 1, math.div(2, 7)) * 87) (1 + 1 * math.div(2, 7)) (-30 * math.div(2, 7)),
18 --400: (easing.cubic-bezier(.2, .1, .7, 1, math.div(3, 7)) * 87) (1 + 1 * math.div(3, 7)) (-30 * math.div(3, 7)),
19
20 --500: (easing.cubic-bezier(.2, .1, .7, 1, math.div(4, 7)) * 87) (1 + 1 * math.div(4, 7)) (-30 * math.div(4, 7)),
21 --600: (easing.cubic-bezier(.2, .1, .7, 1, math.div(5, 7)) * 87) (1 + 1 * math.div(5, 7)) (-30 * math.div(5, 7)),
22 --700: (easing.cubic-bezier(.2, .1, .7, 1, math.div(6, 7)) * 87) (1 + 1 * math.div(6, 7)) (-30 * math.div(6, 7)),
23 --800: (easing.cubic-bezier(.2, .1, .7, 1, math.div(7, 7)) * 87) (1 + 1 * math.div(7, 7)) (-30 * math.div(7, 7)),
24 --900: #000
25 ),
26 ),
27
28 --palettes: (
29 --base: #edddc4 --grays,
30 ),
31 ),
32);
33
34$themes: ();
35
36@each $theme-name, $theme in $themes-spec {
37 $compiled: props.def(--colors, (), 'color');
38
39 @each $palette-name, $palette in map.get($theme, --palettes) {
40 $base-color: list.nth($palette, 1);
41 $levels: list.nth($palette, 2);
42
43 $palette: fn.palette($base-color, map.get($theme, --levels, $levels), list.nth(map.get($theme, --palettes, --base), 1));
44 $compiled: props.merge($compiled, ( $palette-name: $palette ));
45 }
46
47 $themes: map.set($themes, $theme-name, $compiled);
48}
49
50$theme: map.get($themes, --light);
diff --git a/src/_header.scss b/src/_header.scss
new file mode 100644
index 0000000..1f3abc7
--- /dev/null
+++ b/src/_header.scss
@@ -0,0 +1,16 @@
1@mixin styles {
2 .pageHeaderFacade {
3 background-image: url(../images/style-6/custom/header.jpeg);
4 background-repeat: repeat-x;
5
6 > .layoutBoundary {
7 padding-block: 0;
8 }
9 }
10
11 .pageHeaderLogo {
12 > a {
13 padding-block: 0;
14 }
15 }
16}
diff --git a/src/dark.scss b/src/dark.scss
new file mode 100644
index 0000000..2bc7d79
--- /dev/null
+++ b/src/dark.scss
@@ -0,0 +1,8 @@
1@use 'sass:meta';
2@use 'iro-sass/src/props';
3
4@use 'core';
5@use 'common';
6
7@include core.styles--dark;
8@include common.styles;
diff --git a/src/light.scss b/src/light.scss
new file mode 100644
index 0000000..2f9abdc
--- /dev/null
+++ b/src/light.scss
@@ -0,0 +1,12 @@
1@use 'sass:meta';
2@use 'iro-sass/src/props';
3
4@use 'core';
5@use 'common';
6
7@use 'header';
8
9@include core.styles--light;
10@include common.styles;
11
12@include header.styles;