@frontile/theme 0.17.1 → 0.18.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +139 -0
- package/declarations/colors/config.d.ts +64 -0
- package/declarations/colors/contrast.d.ts +16 -0
- package/declarations/colors/palette-absolute.d.ts +8 -0
- package/declarations/colors/palette-dark.d.ts +123 -0
- package/declarations/colors/palette-light.d.ts +123 -0
- package/declarations/colors/palette.d.ts +123 -0
- package/declarations/colors/semantic.d.ts +7 -1
- package/declarations/colors/types.d.ts +321 -15
- package/declarations/colors/util.d.ts +6 -1
- package/declarations/colors.d.ts +2 -2
- package/declarations/components/avatar.d.ts +42 -42
- package/declarations/components/button.d.ts +254 -152
- package/declarations/components/chip.d.ts +62 -103
- package/declarations/components/close-button.d.ts +42 -50
- package/declarations/components/divider.d.ts +43 -10
- package/declarations/components/dropdown.d.ts +42 -1
- package/declarations/components/forms/forms-legacy.d.ts +496 -178
- package/declarations/components/forms/forms.d.ts +891 -822
- package/declarations/components/listbox.d.ts +88 -79
- package/declarations/components/notification-card.d.ts +41 -84
- package/declarations/components/notifications-container.d.ts +42 -17
- package/declarations/components/overlays.d.ts +172 -84
- package/declarations/components/popover.d.ts +43 -16
- package/declarations/components/progress-bar.d.ts +44 -104
- package/declarations/components/spinner.d.ts +44 -30
- package/declarations/components/table.d.ts +51 -132
- package/declarations/plugin/default-config.d.ts +63 -9
- package/declarations/plugin/overlays.d.ts +2 -6
- package/declarations/plugin/power-select.d.ts +1 -1
- package/declarations/plugin/resolve.d.ts +1 -2
- package/declarations/tw.d.ts +40 -1
- package/declarations/types.d.ts +29 -12
- package/dist/colors.js +1 -1
- package/dist/config-4CswsBlg.js +342 -0
- package/dist/config-4CswsBlg.js.map +1 -0
- package/dist/config-B3XkEtHW.js +377 -0
- package/dist/config-B3XkEtHW.js.map +1 -0
- package/dist/config-BpWBpuzR.js +335 -0
- package/dist/config-BpWBpuzR.js.map +1 -0
- package/dist/config-Cle59Y4k.js +523 -0
- package/dist/config-Cle59Y4k.js.map +1 -0
- package/dist/config-D0EoeVzn.js +388 -0
- package/dist/config-D0EoeVzn.js.map +1 -0
- package/dist/config-DBAavoE2.js +336 -0
- package/dist/config-DBAavoE2.js.map +1 -0
- package/dist/config-Oysuq2Z9.js +341 -0
- package/dist/config-Oysuq2Z9.js.map +1 -0
- package/dist/config-PYki2g7N.js +335 -0
- package/dist/config-PYki2g7N.js.map +1 -0
- package/dist/forms-legacy-15iy0KmK.js +1851 -0
- package/dist/forms-legacy-15iy0KmK.js.map +1 -0
- package/dist/forms-legacy-B-L2HELt.js +1881 -0
- package/dist/forms-legacy-B-L2HELt.js.map +1 -0
- package/dist/forms-legacy-BMIAioRi.js +1807 -0
- package/dist/forms-legacy-BMIAioRi.js.map +1 -0
- package/dist/forms-legacy-B_EygtyK.js +1763 -0
- package/dist/forms-legacy-B_EygtyK.js.map +1 -0
- package/dist/forms-legacy-CVLZ-9BG.js +1804 -0
- package/dist/forms-legacy-CVLZ-9BG.js.map +1 -0
- package/dist/forms-legacy-CuFc3hcn.js +1807 -0
- package/dist/forms-legacy-CuFc3hcn.js.map +1 -0
- package/dist/forms-legacy-DiKImAli.js +1809 -0
- package/dist/forms-legacy-DiKImAli.js.map +1 -0
- package/dist/forms-legacy-edWQVbZP.js +1809 -0
- package/dist/forms-legacy-edWQVbZP.js.map +1 -0
- package/dist/index.css +63 -0
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/plugin.js +184 -128
- package/dist/plugin.js.map +1 -1
- package/dist/styles/font-faces.css +26 -0
- package/dist/styles/theme.css +48 -0
- package/dist/styles/typography.css +291 -0
- package/package.json +28 -23
- package/public/fonts/stix-two-text-italic-variable.woff2 +0 -0
- package/public/fonts/stix-two-text-variable.woff2 +0 -0
- package/src/index.css +63 -0
- package/src/styles/font-faces.css +26 -0
- package/src/styles/theme.css +48 -0
- package/src/styles/typography.css +291 -0
package/README.md
CHANGED
|
@@ -70,6 +70,145 @@ Then update your `app/styles/app.css` to use the custom configuration:
|
|
|
70
70
|
@source '../../node_modules/@frontile';
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
+
### Color Configuration
|
|
74
|
+
|
|
75
|
+
You can customize Frontile colors in two ways:
|
|
76
|
+
|
|
77
|
+
#### Option 1: Via Plugin Configuration (Recommended)
|
|
78
|
+
|
|
79
|
+
Configure colors in your `frontile.js` file. This approach automatically generates "on-" colors for optimal text contrast:
|
|
80
|
+
|
|
81
|
+
```js
|
|
82
|
+
const { frontile } = require('@frontile/theme/plugin');
|
|
83
|
+
|
|
84
|
+
module.exports = frontile({
|
|
85
|
+
themes: {
|
|
86
|
+
light: {
|
|
87
|
+
colors: {
|
|
88
|
+
brand: {
|
|
89
|
+
subtle: '#3b82f6',
|
|
90
|
+
medium: '#2563eb',
|
|
91
|
+
strong: '#1d4ed8',
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
dark: {
|
|
96
|
+
colors: {
|
|
97
|
+
brand: {
|
|
98
|
+
subtle: '#60a5fa',
|
|
99
|
+
medium: '#3b82f6',
|
|
100
|
+
strong: '#2563eb',
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Use any color format (hex, rgb, hsl, oklch, etc.). The plugin automatically generates "on-" colors for optimal text contrast.
|
|
109
|
+
|
|
110
|
+
**CSS Variable References:** You can also reference other CSS variables in your configuration:
|
|
111
|
+
|
|
112
|
+
```js
|
|
113
|
+
module.exports = frontile({
|
|
114
|
+
themes: {
|
|
115
|
+
light: {
|
|
116
|
+
colors: {
|
|
117
|
+
brand: {
|
|
118
|
+
subtle: 'var(--color-surface-solid-6)',
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
**Note:** When using CSS variable references, automatic "on-" color generation is skipped since the actual color value isn't known at build time. You'll need to manually define the corresponding "on-" colors if needed.
|
|
127
|
+
|
|
128
|
+
### Customizing On-Colors
|
|
129
|
+
|
|
130
|
+
The theme system automatically generates "on-color" variants (e.g., `on-brand`, `on-success`) for semantic colors to ensure optimal text contrast. These colors are used as text/foreground colors on semantic backgrounds.
|
|
131
|
+
|
|
132
|
+
By default, on-colors are calculated using WCAG contrast guidelines and will be either pure white or pure black. However, you can override these auto-generated colors to match your brand or design requirements:
|
|
133
|
+
|
|
134
|
+
```js
|
|
135
|
+
const { frontile } = require('@frontile/theme/plugin');
|
|
136
|
+
|
|
137
|
+
module.exports = frontile({
|
|
138
|
+
themes: {
|
|
139
|
+
light: {
|
|
140
|
+
colors: {
|
|
141
|
+
// Define background colors as usual
|
|
142
|
+
brand: {
|
|
143
|
+
subtle: '#3b82f6',
|
|
144
|
+
soft: '#2563eb',
|
|
145
|
+
medium: '#1e40af',
|
|
146
|
+
strong: '#1e3a8a',
|
|
147
|
+
DEFAULT: '#1e40af'
|
|
148
|
+
},
|
|
149
|
+
// Override on-colors to use custom values
|
|
150
|
+
'on-brand': {
|
|
151
|
+
subtle: '#ffffff', // Pure white
|
|
152
|
+
soft: '#e0f2ff', // Light blue tint instead of pure white
|
|
153
|
+
medium: '#ffffff', // Pure white
|
|
154
|
+
strong: '#bfdbfe', // Lighter blue
|
|
155
|
+
DEFAULT: '#ffffff' // Pure white
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
**Partial overrides are supported** - any variants you don't define will still be auto-generated:
|
|
164
|
+
|
|
165
|
+
```js
|
|
166
|
+
module.exports = frontile({
|
|
167
|
+
themes: {
|
|
168
|
+
light: {
|
|
169
|
+
colors: {
|
|
170
|
+
brand: {
|
|
171
|
+
subtle: '#3b82f6',
|
|
172
|
+
medium: '#1e40af',
|
|
173
|
+
strong: '#1e3a8a',
|
|
174
|
+
},
|
|
175
|
+
'on-brand': {
|
|
176
|
+
medium: '#e0f2ff', // Only override medium, others auto-generate
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
You can override on-colors for any semantic color category:
|
|
185
|
+
- `on-neutral`, `on-brand`, `on-accent`, `on-success`, `on-warning`, `on-danger`
|
|
186
|
+
- `on-surface-solid` (with numeric keys 0-11)
|
|
187
|
+
|
|
188
|
+
#### Option 2: Via CSS Variables
|
|
189
|
+
|
|
190
|
+
Override colors directly in your CSS:
|
|
191
|
+
|
|
192
|
+
```css
|
|
193
|
+
@import "tailwindcss" source("../../");
|
|
194
|
+
@plugin "@frontile/theme/plugin/default";
|
|
195
|
+
@source '../../node_modules/@frontile';
|
|
196
|
+
|
|
197
|
+
@theme {
|
|
198
|
+
/* Override brand colors */
|
|
199
|
+
--color-brand-subtle: #3b82f6;
|
|
200
|
+
--color-brand-medium: #2563eb;
|
|
201
|
+
--color-brand-strong: #1d4ed8;
|
|
202
|
+
|
|
203
|
+
/* Manually define "on-" colors for text contrast */
|
|
204
|
+
--color-on-brand-subtle: #ffffff;
|
|
205
|
+
--color-on-brand-medium: #ffffff;
|
|
206
|
+
--color-on-brand-strong: #ffffff;
|
|
207
|
+
}
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
**Note:** When defining colors via CSS, you must manually define corresponding "on-" colors. The plugin cannot automatically generate them because CSS variable values are not accessible at build time.
|
|
211
|
+
|
|
73
212
|
## Documentation
|
|
74
213
|
|
|
75
214
|
Visit [frontile.dev](https://frontile.dev/) to read the docs
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare const semanticColors: {
|
|
2
|
+
light: {
|
|
3
|
+
neutral: import("./types").SemanticColorCategory;
|
|
4
|
+
brand: import("./types").SemanticColorCategory;
|
|
5
|
+
accent: import("./types").SemanticColorCategory;
|
|
6
|
+
success: import("./types").SemanticColorCategory;
|
|
7
|
+
warning: import("./types").SemanticColorCategory;
|
|
8
|
+
danger: import("./types").SemanticColorCategory;
|
|
9
|
+
surface: import("./types").SurfaceColors;
|
|
10
|
+
'on-neutral'?: import("./types").OnColorCategory;
|
|
11
|
+
'on-brand'?: import("./types").OnColorCategory;
|
|
12
|
+
'on-accent'?: import("./types").OnColorCategory;
|
|
13
|
+
'on-success'?: import("./types").OnColorCategory;
|
|
14
|
+
'on-warning'?: import("./types").OnColorCategory;
|
|
15
|
+
'on-danger'?: import("./types").OnColorCategory;
|
|
16
|
+
'on-surface-solid'?: {
|
|
17
|
+
0?: string;
|
|
18
|
+
1?: string;
|
|
19
|
+
2?: string;
|
|
20
|
+
3?: string;
|
|
21
|
+
4?: string;
|
|
22
|
+
5?: string;
|
|
23
|
+
6?: string;
|
|
24
|
+
7?: string;
|
|
25
|
+
8?: string;
|
|
26
|
+
9?: string;
|
|
27
|
+
10?: string;
|
|
28
|
+
11?: string;
|
|
29
|
+
};
|
|
30
|
+
divider: import("./types").ColorScale;
|
|
31
|
+
focus: import("./types").ColorScale;
|
|
32
|
+
};
|
|
33
|
+
dark: {
|
|
34
|
+
neutral: import("./types").SemanticColorCategory;
|
|
35
|
+
brand: import("./types").SemanticColorCategory;
|
|
36
|
+
accent: import("./types").SemanticColorCategory;
|
|
37
|
+
success: import("./types").SemanticColorCategory;
|
|
38
|
+
warning: import("./types").SemanticColorCategory;
|
|
39
|
+
danger: import("./types").SemanticColorCategory;
|
|
40
|
+
surface: import("./types").SurfaceColors;
|
|
41
|
+
'on-neutral'?: import("./types").OnColorCategory;
|
|
42
|
+
'on-brand'?: import("./types").OnColorCategory;
|
|
43
|
+
'on-accent'?: import("./types").OnColorCategory;
|
|
44
|
+
'on-success'?: import("./types").OnColorCategory;
|
|
45
|
+
'on-warning'?: import("./types").OnColorCategory;
|
|
46
|
+
'on-danger'?: import("./types").OnColorCategory;
|
|
47
|
+
'on-surface-solid'?: {
|
|
48
|
+
0?: string;
|
|
49
|
+
1?: string;
|
|
50
|
+
2?: string;
|
|
51
|
+
3?: string;
|
|
52
|
+
4?: string;
|
|
53
|
+
5?: string;
|
|
54
|
+
6?: string;
|
|
55
|
+
7?: string;
|
|
56
|
+
8?: string;
|
|
57
|
+
9?: string;
|
|
58
|
+
10?: string;
|
|
59
|
+
11?: string;
|
|
60
|
+
};
|
|
61
|
+
divider: import("./types").ColorScale;
|
|
62
|
+
focus: import("./types").ColorScale;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WCAG Contrast Calculation Utilities
|
|
3
|
+
*
|
|
4
|
+
* Provides functions to determine optimal contrasting colors (black or white)
|
|
5
|
+
* for text on colored backgrounds using WCAG 2.1 standards.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Get optimal contrasting color (black or white) for text on a given background
|
|
9
|
+
*
|
|
10
|
+
* Uses the Color package's built-in WCAG contrast calculation to determine
|
|
11
|
+
* which color (black or white) provides better contrast on the given background.
|
|
12
|
+
*
|
|
13
|
+
* @param backgroundColor - Background color to calculate contrast for
|
|
14
|
+
* @returns Contrasting color (black or white)
|
|
15
|
+
*/
|
|
16
|
+
export declare function getContrastingColor(backgroundColor: string): string;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Frontile Color Palette (dark mode)
|
|
3
|
+
*
|
|
4
|
+
* Color scales extracted from Tokens Studio palette definitions.
|
|
5
|
+
*/
|
|
6
|
+
declare const gray: {
|
|
7
|
+
'50': string;
|
|
8
|
+
'100': string;
|
|
9
|
+
'200': string;
|
|
10
|
+
'300': string;
|
|
11
|
+
'400': string;
|
|
12
|
+
'500': string;
|
|
13
|
+
'600': string;
|
|
14
|
+
'700': string;
|
|
15
|
+
'800': string;
|
|
16
|
+
'900': string;
|
|
17
|
+
'950': string;
|
|
18
|
+
};
|
|
19
|
+
declare const blue: {
|
|
20
|
+
'50': string;
|
|
21
|
+
'100': string;
|
|
22
|
+
'200': string;
|
|
23
|
+
'300': string;
|
|
24
|
+
'400': string;
|
|
25
|
+
'500': string;
|
|
26
|
+
'600': string;
|
|
27
|
+
'700': string;
|
|
28
|
+
'800': string;
|
|
29
|
+
'900': string;
|
|
30
|
+
'950': string;
|
|
31
|
+
};
|
|
32
|
+
declare const green: {
|
|
33
|
+
'50': string;
|
|
34
|
+
'100': string;
|
|
35
|
+
'200': string;
|
|
36
|
+
'300': string;
|
|
37
|
+
'400': string;
|
|
38
|
+
'500': string;
|
|
39
|
+
'600': string;
|
|
40
|
+
'700': string;
|
|
41
|
+
'800': string;
|
|
42
|
+
'900': string;
|
|
43
|
+
'950': string;
|
|
44
|
+
};
|
|
45
|
+
declare const orange: {
|
|
46
|
+
'50': string;
|
|
47
|
+
'100': string;
|
|
48
|
+
'200': string;
|
|
49
|
+
'300': string;
|
|
50
|
+
'400': string;
|
|
51
|
+
'500': string;
|
|
52
|
+
'600': string;
|
|
53
|
+
'700': string;
|
|
54
|
+
'800': string;
|
|
55
|
+
'900': string;
|
|
56
|
+
'950': string;
|
|
57
|
+
};
|
|
58
|
+
declare const pink: {
|
|
59
|
+
'50': string;
|
|
60
|
+
'100': string;
|
|
61
|
+
'200': string;
|
|
62
|
+
'300': string;
|
|
63
|
+
'400': string;
|
|
64
|
+
'500': string;
|
|
65
|
+
'600': string;
|
|
66
|
+
'700': string;
|
|
67
|
+
'800': string;
|
|
68
|
+
'900': string;
|
|
69
|
+
'950': string;
|
|
70
|
+
};
|
|
71
|
+
declare const red: {
|
|
72
|
+
'50': string;
|
|
73
|
+
'100': string;
|
|
74
|
+
'200': string;
|
|
75
|
+
'300': string;
|
|
76
|
+
'400': string;
|
|
77
|
+
'500': string;
|
|
78
|
+
'600': string;
|
|
79
|
+
'700': string;
|
|
80
|
+
'800': string;
|
|
81
|
+
'900': string;
|
|
82
|
+
'950': string;
|
|
83
|
+
};
|
|
84
|
+
declare const teal: {
|
|
85
|
+
'50': string;
|
|
86
|
+
'100': string;
|
|
87
|
+
'200': string;
|
|
88
|
+
'300': string;
|
|
89
|
+
'400': string;
|
|
90
|
+
'500': string;
|
|
91
|
+
'600': string;
|
|
92
|
+
'700': string;
|
|
93
|
+
'800': string;
|
|
94
|
+
'900': string;
|
|
95
|
+
'950': string;
|
|
96
|
+
};
|
|
97
|
+
declare const violet: {
|
|
98
|
+
'50': string;
|
|
99
|
+
'100': string;
|
|
100
|
+
'200': string;
|
|
101
|
+
'300': string;
|
|
102
|
+
'400': string;
|
|
103
|
+
'500': string;
|
|
104
|
+
'600': string;
|
|
105
|
+
'700': string;
|
|
106
|
+
'800': string;
|
|
107
|
+
'900': string;
|
|
108
|
+
'950': string;
|
|
109
|
+
};
|
|
110
|
+
declare const yellow: {
|
|
111
|
+
'50': string;
|
|
112
|
+
'100': string;
|
|
113
|
+
'200': string;
|
|
114
|
+
'300': string;
|
|
115
|
+
'400': string;
|
|
116
|
+
'500': string;
|
|
117
|
+
'600': string;
|
|
118
|
+
'700': string;
|
|
119
|
+
'800': string;
|
|
120
|
+
'900': string;
|
|
121
|
+
'950': string;
|
|
122
|
+
};
|
|
123
|
+
export { gray, blue, green, orange, pink, red, teal, violet, yellow };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Frontile Color Palette (light mode)
|
|
3
|
+
*
|
|
4
|
+
* Color scales extracted from Tokens Studio palette definitions.
|
|
5
|
+
*/
|
|
6
|
+
declare const gray: {
|
|
7
|
+
'50': string;
|
|
8
|
+
'100': string;
|
|
9
|
+
'200': string;
|
|
10
|
+
'300': string;
|
|
11
|
+
'400': string;
|
|
12
|
+
'500': string;
|
|
13
|
+
'600': string;
|
|
14
|
+
'700': string;
|
|
15
|
+
'800': string;
|
|
16
|
+
'900': string;
|
|
17
|
+
'950': string;
|
|
18
|
+
};
|
|
19
|
+
declare const blue: {
|
|
20
|
+
'50': string;
|
|
21
|
+
'100': string;
|
|
22
|
+
'200': string;
|
|
23
|
+
'300': string;
|
|
24
|
+
'400': string;
|
|
25
|
+
'500': string;
|
|
26
|
+
'600': string;
|
|
27
|
+
'700': string;
|
|
28
|
+
'800': string;
|
|
29
|
+
'900': string;
|
|
30
|
+
'950': string;
|
|
31
|
+
};
|
|
32
|
+
declare const green: {
|
|
33
|
+
'50': string;
|
|
34
|
+
'100': string;
|
|
35
|
+
'200': string;
|
|
36
|
+
'300': string;
|
|
37
|
+
'400': string;
|
|
38
|
+
'500': string;
|
|
39
|
+
'600': string;
|
|
40
|
+
'700': string;
|
|
41
|
+
'800': string;
|
|
42
|
+
'900': string;
|
|
43
|
+
'950': string;
|
|
44
|
+
};
|
|
45
|
+
declare const orange: {
|
|
46
|
+
'50': string;
|
|
47
|
+
'100': string;
|
|
48
|
+
'200': string;
|
|
49
|
+
'300': string;
|
|
50
|
+
'400': string;
|
|
51
|
+
'500': string;
|
|
52
|
+
'600': string;
|
|
53
|
+
'700': string;
|
|
54
|
+
'800': string;
|
|
55
|
+
'900': string;
|
|
56
|
+
'950': string;
|
|
57
|
+
};
|
|
58
|
+
declare const pink: {
|
|
59
|
+
'50': string;
|
|
60
|
+
'100': string;
|
|
61
|
+
'200': string;
|
|
62
|
+
'300': string;
|
|
63
|
+
'400': string;
|
|
64
|
+
'500': string;
|
|
65
|
+
'600': string;
|
|
66
|
+
'700': string;
|
|
67
|
+
'800': string;
|
|
68
|
+
'900': string;
|
|
69
|
+
'950': string;
|
|
70
|
+
};
|
|
71
|
+
declare const red: {
|
|
72
|
+
'50': string;
|
|
73
|
+
'100': string;
|
|
74
|
+
'200': string;
|
|
75
|
+
'300': string;
|
|
76
|
+
'400': string;
|
|
77
|
+
'500': string;
|
|
78
|
+
'600': string;
|
|
79
|
+
'700': string;
|
|
80
|
+
'800': string;
|
|
81
|
+
'900': string;
|
|
82
|
+
'950': string;
|
|
83
|
+
};
|
|
84
|
+
declare const teal: {
|
|
85
|
+
'50': string;
|
|
86
|
+
'100': string;
|
|
87
|
+
'200': string;
|
|
88
|
+
'300': string;
|
|
89
|
+
'400': string;
|
|
90
|
+
'500': string;
|
|
91
|
+
'600': string;
|
|
92
|
+
'700': string;
|
|
93
|
+
'800': string;
|
|
94
|
+
'900': string;
|
|
95
|
+
'950': string;
|
|
96
|
+
};
|
|
97
|
+
declare const violet: {
|
|
98
|
+
'50': string;
|
|
99
|
+
'100': string;
|
|
100
|
+
'200': string;
|
|
101
|
+
'300': string;
|
|
102
|
+
'400': string;
|
|
103
|
+
'500': string;
|
|
104
|
+
'600': string;
|
|
105
|
+
'700': string;
|
|
106
|
+
'800': string;
|
|
107
|
+
'900': string;
|
|
108
|
+
'950': string;
|
|
109
|
+
};
|
|
110
|
+
declare const yellow: {
|
|
111
|
+
'50': string;
|
|
112
|
+
'100': string;
|
|
113
|
+
'200': string;
|
|
114
|
+
'300': string;
|
|
115
|
+
'400': string;
|
|
116
|
+
'500': string;
|
|
117
|
+
'600': string;
|
|
118
|
+
'700': string;
|
|
119
|
+
'800': string;
|
|
120
|
+
'900': string;
|
|
121
|
+
'950': string;
|
|
122
|
+
};
|
|
123
|
+
export { gray, blue, green, orange, pink, red, teal, violet, yellow };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Frontile Color Palette
|
|
3
|
+
*
|
|
4
|
+
* Theme-independent OKLCH color scales extracted from Tokens Studio palette definitions.
|
|
5
|
+
*/
|
|
6
|
+
declare const gray: {
|
|
7
|
+
'50': string;
|
|
8
|
+
'100': string;
|
|
9
|
+
'200': string;
|
|
10
|
+
'300': string;
|
|
11
|
+
'400': string;
|
|
12
|
+
'500': string;
|
|
13
|
+
'600': string;
|
|
14
|
+
'700': string;
|
|
15
|
+
'800': string;
|
|
16
|
+
'900': string;
|
|
17
|
+
'950': string;
|
|
18
|
+
};
|
|
19
|
+
declare const blue: {
|
|
20
|
+
'50': string;
|
|
21
|
+
'100': string;
|
|
22
|
+
'200': string;
|
|
23
|
+
'300': string;
|
|
24
|
+
'400': string;
|
|
25
|
+
'500': string;
|
|
26
|
+
'600': string;
|
|
27
|
+
'700': string;
|
|
28
|
+
'800': string;
|
|
29
|
+
'900': string;
|
|
30
|
+
'950': string;
|
|
31
|
+
};
|
|
32
|
+
declare const green: {
|
|
33
|
+
'50': string;
|
|
34
|
+
'100': string;
|
|
35
|
+
'200': string;
|
|
36
|
+
'300': string;
|
|
37
|
+
'400': string;
|
|
38
|
+
'500': string;
|
|
39
|
+
'600': string;
|
|
40
|
+
'700': string;
|
|
41
|
+
'800': string;
|
|
42
|
+
'900': string;
|
|
43
|
+
'950': string;
|
|
44
|
+
};
|
|
45
|
+
declare const orange: {
|
|
46
|
+
'50': string;
|
|
47
|
+
'100': string;
|
|
48
|
+
'200': string;
|
|
49
|
+
'300': string;
|
|
50
|
+
'400': string;
|
|
51
|
+
'500': string;
|
|
52
|
+
'600': string;
|
|
53
|
+
'700': string;
|
|
54
|
+
'800': string;
|
|
55
|
+
'900': string;
|
|
56
|
+
'950': string;
|
|
57
|
+
};
|
|
58
|
+
declare const pink: {
|
|
59
|
+
'50': string;
|
|
60
|
+
'100': string;
|
|
61
|
+
'200': string;
|
|
62
|
+
'300': string;
|
|
63
|
+
'400': string;
|
|
64
|
+
'500': string;
|
|
65
|
+
'600': string;
|
|
66
|
+
'700': string;
|
|
67
|
+
'800': string;
|
|
68
|
+
'900': string;
|
|
69
|
+
'950': string;
|
|
70
|
+
};
|
|
71
|
+
declare const red: {
|
|
72
|
+
'50': string;
|
|
73
|
+
'100': string;
|
|
74
|
+
'200': string;
|
|
75
|
+
'300': string;
|
|
76
|
+
'400': string;
|
|
77
|
+
'500': string;
|
|
78
|
+
'600': string;
|
|
79
|
+
'700': string;
|
|
80
|
+
'800': string;
|
|
81
|
+
'900': string;
|
|
82
|
+
'950': string;
|
|
83
|
+
};
|
|
84
|
+
declare const teal: {
|
|
85
|
+
'50': string;
|
|
86
|
+
'100': string;
|
|
87
|
+
'200': string;
|
|
88
|
+
'300': string;
|
|
89
|
+
'400': string;
|
|
90
|
+
'500': string;
|
|
91
|
+
'600': string;
|
|
92
|
+
'700': string;
|
|
93
|
+
'800': string;
|
|
94
|
+
'900': string;
|
|
95
|
+
'950': string;
|
|
96
|
+
};
|
|
97
|
+
declare const violet: {
|
|
98
|
+
'50': string;
|
|
99
|
+
'100': string;
|
|
100
|
+
'200': string;
|
|
101
|
+
'300': string;
|
|
102
|
+
'400': string;
|
|
103
|
+
'500': string;
|
|
104
|
+
'600': string;
|
|
105
|
+
'700': string;
|
|
106
|
+
'800': string;
|
|
107
|
+
'900': string;
|
|
108
|
+
'950': string;
|
|
109
|
+
};
|
|
110
|
+
declare const yellow: {
|
|
111
|
+
'50': string;
|
|
112
|
+
'100': string;
|
|
113
|
+
'200': string;
|
|
114
|
+
'300': string;
|
|
115
|
+
'400': string;
|
|
116
|
+
'500': string;
|
|
117
|
+
'600': string;
|
|
118
|
+
'700': string;
|
|
119
|
+
'800': string;
|
|
120
|
+
'900': string;
|
|
121
|
+
'950': string;
|
|
122
|
+
};
|
|
123
|
+
export { gray, blue, green, orange, pink, red, teal, violet, yellow };
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Frontile Semantic Colors
|
|
3
|
+
*
|
|
4
|
+
* Semantic color mappings for light and dark themes.
|
|
5
|
+
*/
|
|
1
6
|
import type { ThemeColors } from './types';
|
|
2
|
-
|
|
7
|
+
declare const _default: {
|
|
3
8
|
light: ThemeColors;
|
|
4
9
|
dark: ThemeColors;
|
|
5
10
|
};
|
|
11
|
+
export default _default;
|