diff options
Diffstat (limited to 'src/_config.scss')
-rw-r--r-- | src/_config.scss | 155 |
1 files changed, 80 insertions, 75 deletions
diff --git a/src/_config.scss b/src/_config.scss index 950ff3b..be118b2 100644 --- a/src/_config.scss +++ b/src/_config.scss | |||
@@ -1,9 +1,12 @@ | |||
1 | @use 'sass:list'; | 1 | @use 'sass:list'; |
2 | @use 'sass:map'; | 2 | @use 'sass:map'; |
3 | @use 'sass:math'; | ||
3 | @use 'iro-sass/src/index' as iro; | 4 | @use 'iro-sass/src/index' as iro; |
4 | @use 'iro-sass/src/responsive' as res; | 5 | @use 'iro-sass/src/responsive' as res; |
6 | @use 'iro-sass/src/easing' as easing; | ||
5 | @use 'include-media/dist/include-media' as media; | 7 | @use 'include-media/dist/include-media' as media; |
6 | @use '@oddbird/blend'; | 8 | @use '@oddbird/blend'; |
9 | @use 'functions/colors' as iro-colors; | ||
7 | 10 | ||
8 | iro.$vars-root-size: 16px; | 11 | iro.$vars-root-size: 16px; |
9 | 12 | ||
@@ -25,31 +28,33 @@ res.$named-viewports: media.$breakpoints; | |||
25 | 28 | ||
26 | $palette-precision: 0.01 !default; | 29 | $palette-precision: 0.01 !default; |
27 | 30 | ||
31 | $palette-chroma-easing: 'ease' !default; | ||
32 | |||
28 | $static-colors: ( | 33 | $static-colors: ( |
29 | --base: hsl(0, 0%, 97%), | 34 | --base: hsl(0, 0%, 97%), |
30 | 35 | ||
31 | --contrasts: ( | 36 | --contrasts: ( |
32 | --100: -1.08, | 37 | --100: math.div( 1, 13) * 106 - 10, |
33 | --200: -1.20, | 38 | --200: math.div( 2, 13) * 106 - 10, |
34 | --300: -1.33, | 39 | --300: math.div( 3, 13) * 106 - 10, |
35 | --400: -1.58, | 40 | --400: math.div( 4, 13) * 106 - 10, |
36 | --500: -1.92, | 41 | --500: math.div( 5, 13) * 106 - 10, |
37 | --600: -2.39, | 42 | --600: math.div( 6, 13) * 106 - 10, |
38 | --700: -3.01, | 43 | --700: math.div( 7, 13) * 106 - 10, |
39 | --800: -3.87, | 44 | --800: math.div( 8, 13) * 106 - 10, |
40 | --900: -5.07, | 45 | --900: math.div( 9, 13) * 106 - 10, |
41 | --1000: -6.72, | 46 | --1000: math.div(10, 13) * 106 - 10, |
42 | --1100: -8.84, | 47 | --1100: math.div(11, 13) * 106 - 10, |
43 | --1200: -11.31, | 48 | --1200: math.div(12, 13) * 106 - 10, |
44 | --1300: -13.94, | 49 | --1300: math.div(13, 13) * 106 - 10, |
45 | ), | 50 | ), |
46 | 51 | ||
47 | --palettes: ( | 52 | --palettes: ( |
48 | --blue: blend.lch(48% 50 279), | 53 | --blue: iro-colors.oklch(56% 0.14 265.25), |
49 | --purple: blend.lch(48% 50 308), | 54 | --purple: iro-colors.oklch(56% 0.14 305.58), |
50 | --red: blend.lch(48% 50 23), | 55 | --red: iro-colors.oklch(56% 0.14 18.69), |
51 | --green: blend.lch(63% 50 147), | 56 | --green: iro-colors.oklch(56% 0.14 150.48), |
52 | --yellow: blend.lch(68% 50 80), | 57 | --yellow: iro-colors.oklch(56% 0.14 84.08), |
53 | ), | 58 | ), |
54 | ) !default; | 59 | ) !default; |
55 | 60 | ||
@@ -60,46 +65,46 @@ $theme-light: ( | |||
60 | --75: -5, | 65 | --75: -5, |
61 | --100: 0, | 66 | --100: 0, |
62 | 67 | ||
63 | --200: 13.2375, | 68 | --200: easing.cubic-bezier(.3, .1, .7, .9, math.div(1, 8)) * 106, |
64 | --300: 26.475, | 69 | --300: easing.cubic-bezier(.3, .1, .7, .9, math.div(2, 8)) * 106, |
65 | --400: 39.7125, | 70 | --400: easing.cubic-bezier(.3, .1, .7, .9, math.div(3, 8)) * 106, |
66 | 71 | ||
67 | --500: 52.95, | 72 | --500: easing.cubic-bezier(.3, .1, .7, .9, math.div(4, 8)) * 106, |
68 | --600: 66.1875, | 73 | --600: easing.cubic-bezier(.3, .1, .7, .9, math.div(5, 8)) * 106, |
69 | --700: 79.425, | 74 | --700: easing.cubic-bezier(.3, .1, .7, .9, math.div(6, 8)) * 106, |
70 | --800: 92.6625, | 75 | --800: easing.cubic-bezier(.3, .1, .7, .9, math.div(7, 8)) * 106, |
71 | --900: 105.9, | 76 | --900: easing.cubic-bezier(.3, .1, .7, .9, math.div(8, 8)) * 106, |
72 | ), | 77 | ), |
73 | 78 | ||
74 | --colors: ( | 79 | --colors: ( |
75 | --100: -1.18, | 80 | --100: math.div( 0, 13) * 100 + 5, |
76 | --200: -1.30, | 81 | --200: math.div( 1, 13) * 100 + 5, |
77 | --300: -1.43, | 82 | --300: math.div( 2, 13) * 100 + 5, |
78 | --400: -1.68, | 83 | --400: math.div( 3, 13) * 100 + 5, |
79 | --500: -2.00, | 84 | --500: math.div( 4, 13) * 100 + 5, |
80 | --600: -2.45, | 85 | --600: math.div( 5, 13) * 100 + 5, |
81 | --700: -3.04, | 86 | --700: math.div( 6, 13) * 100 + 5, |
82 | --800: -3.87, | 87 | --800: math.div( 7, 13) * 100 + 5, |
83 | --900: -5.07, | 88 | --900: math.div( 8, 13) * 100 + 5, |
84 | --1000: -6.72, | 89 | --1000: math.div( 9, 13) * 100 + 5, |
85 | --1100: -8.84, | 90 | --1100: math.div(10, 13) * 100 + 5, |
86 | --1200: -11.31, | 91 | --1200: math.div(11, 13) * 100 + 5, |
87 | --1300: -13.94, | 92 | --1300: math.div(12, 13) * 100 + 5, |
88 | ), | 93 | ), |
89 | ), | 94 | ), |
90 | 95 | ||
91 | --ranges: ( | 96 | --ranges: ( |
92 | --full: 1, | 97 | --full: 1, |
93 | --muted: .2, | 98 | --muted: .1, |
94 | ), | 99 | ), |
95 | 100 | ||
96 | --palettes: ( | 101 | --palettes: ( |
97 | --base: hsl(0, 0%, 97%) --grays --full, | 102 | --base: hsl(0, 0%, 97%) --grays --full, |
98 | --blue: blend.lch(48% 50 279) --colors --muted, | 103 | --blue: iro-colors.oklch(56% 0.14 265.25) --colors --muted, |
99 | --purple: blend.lch(48% 50 308) --colors --muted, | 104 | --purple: iro-colors.oklch(56% 0.14 305.58) --colors --muted, |
100 | --red: blend.lch(48% 50 23) --colors --muted, | 105 | --red: iro-colors.oklch(56% 0.14 18.69) --colors --muted, |
101 | --green: blend.lch(63% 50 147) --colors --muted, | 106 | --green: iro-colors.oklch(56% 0.14 150.48) --colors --muted, |
102 | --yellow: blend.lch(68% 50 80) --colors --muted, | 107 | --yellow: iro-colors.oklch(56% 0.14 84.08) --colors --muted, |
103 | ), | 108 | ), |
104 | 109 | ||
105 | --semantic: ( | 110 | --semantic: ( |
@@ -134,50 +139,50 @@ $theme-light: ( | |||
134 | $theme-dark: ( | 139 | $theme-dark: ( |
135 | --contrasts: ( | 140 | --contrasts: ( |
136 | --grays: ( | 141 | --grays: ( |
137 | --50: -1.31, | 142 | --50: 3, |
138 | --75: -1.18, | 143 | --75: 1.5, |
139 | --100: 1, | 144 | --100: 0, |
140 | 145 | ||
141 | --200: 1.15, | 146 | --200: easing.cubic-bezier(.5, .1, .7, .8, math.div(1, 8)) * -108, |
142 | --300: 1.35, | 147 | --300: easing.cubic-bezier(.5, .1, .7, .8, math.div(2, 8)) * -108, |
143 | --400: 1.7, | 148 | --400: easing.cubic-bezier(.5, .1, .7, .8, math.div(3, 8)) * -108, |
144 | 149 | ||
145 | --500: 2.4, | 150 | --500: easing.cubic-bezier(.5, .1, .7, .8, math.div(4, 8)) * -108, |
146 | --600: 3.3, | 151 | --600: easing.cubic-bezier(.5, .1, .7, .8, math.div(5, 8)) * -108, |
147 | --700: 6, | 152 | --700: easing.cubic-bezier(.5, .1, .7, .8, math.div(6, 8)) * -108, |
148 | --800: 13, | 153 | --800: easing.cubic-bezier(.5, .1, .7, .8, math.div(7, 8)) * -108, |
149 | --900: 20, | 154 | --900: easing.cubic-bezier(.5, .1, .7, .8, math.div(8, 8)) * -108, |
150 | ), | 155 | ), |
151 | 156 | ||
152 | --colors: ( | 157 | --colors: ( |
153 | --100: 1.12, | 158 | --100: math.div( 0, 13) * -110 - 5, |
154 | --200: 1.30, | 159 | --200: math.div( 1, 13) * -110 - 5, |
155 | --300: 1.58, | 160 | --300: math.div( 2, 13) * -110 - 5, |
156 | --400: 1.96, | 161 | --400: math.div( 3, 13) * -110 - 5, |
157 | --500: 2.45, | 162 | --500: math.div( 4, 13) * -110 - 5, |
158 | --600: 3.09, | 163 | --600: math.div( 5, 13) * -110 - 5, |
159 | --700: 3.90, | 164 | --700: math.div( 6, 13) * -110 - 5, |
160 | --800: 4.85, | 165 | --800: math.div( 7, 13) * -110 - 5, |
161 | --900: 6.02, | 166 | --900: math.div( 8, 13) * -110 - 5, |
162 | --1000: 7.34, | 167 | --1000: math.div( 9, 13) * -110 - 5, |
163 | --1100: 8.77, | 168 | --1100: math.div(10, 13) * -110 - 5, |
164 | --1200: 10.18, | 169 | --1200: math.div(11, 13) * -110 - 5, |
165 | --1300: 11.64, | 170 | --1300: math.div(12, 13) * -110 - 5, |
166 | ), | 171 | ), |
167 | ), | 172 | ), |
168 | 173 | ||
169 | --ranges: ( | 174 | --ranges: ( |
170 | --full: 1, | 175 | --full: 1, |
171 | --muted: .2, | 176 | --muted: .4, |
172 | ), | 177 | ), |
173 | 178 | ||
174 | --palettes: ( | 179 | --palettes: ( |
175 | --base: hsl(0, 0%, 19%) --grays --full, | 180 | --base: hsl(0, 0%, 19%) --grays --full, |
176 | --blue: blend.lch(48% 50 279) --colors --muted, | 181 | --blue: iro-colors.oklch(56% 0.14 265.25) --colors --muted, |
177 | --purple: blend.lch(48% 50 308) --colors --muted, | 182 | --purple: iro-colors.oklch(56% 0.14 305.58) --colors --muted, |
178 | --red: blend.lch(48% 50 23) --colors --muted, | 183 | --red: iro-colors.oklch(56% 0.14 18.69) --colors --muted, |
179 | --green: blend.lch(63% 50 147) --colors --muted, | 184 | --green: iro-colors.oklch(56% 0.14 150.48) --colors --muted, |
180 | --yellow: blend.lch(68% 50 80) --colors --muted, | 185 | --yellow: iro-colors.oklch(56% 0.14 84.08) --colors --muted, |
181 | ), | 186 | ), |
182 | 187 | ||
183 | --semantic: ( | 188 | --semantic: ( |