@digigov/css 2.0.0-rc.7 → 2.0.2

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.
Files changed (145) hide show
  1. package/dist/base/index.css +3 -3
  2. package/dist/base.js +1 -1
  3. package/dist/components.js +1 -1
  4. package/dist/digigov.css +5 -5
  5. package/dist/utilities/index.css +1 -1
  6. package/dist/utilities.js +1 -1
  7. package/index.js +99 -69
  8. package/package.json +20 -20
  9. package/postcss.config.js +4 -3
  10. package/src/base/index.css +1 -0
  11. package/src/base/index.native.css +0 -0
  12. package/src/base/postcss.config.js +11 -10
  13. package/src/base/tailwind.config.js +4 -11
  14. package/src/components/accordion.common.css +29 -0
  15. package/src/components/accordion.css +39 -12
  16. package/src/components/accordion.native.css +27 -0
  17. package/src/components/admin-header.css +1 -19
  18. package/src/components/admin-layout.css +6 -15
  19. package/src/components/autocomplete.css +7 -5
  20. package/src/components/blockquote.common.css +14 -0
  21. package/src/components/blockquote.css +9 -0
  22. package/src/components/blockquote.native.css +14 -0
  23. package/src/components/breadcrumbs.css +9 -2
  24. package/src/components/button.common.css +62 -0
  25. package/src/components/button.css +13 -28
  26. package/src/components/button.native.css +55 -0
  27. package/src/components/card.common.css +33 -0
  28. package/src/components/card.css +36 -15
  29. package/src/components/card.native.css +29 -0
  30. package/src/components/checkboxes.common.css +16 -0
  31. package/src/components/checkboxes.css +6 -8
  32. package/src/components/checkboxes.native.css +27 -0
  33. package/src/components/chip.common.css +19 -0
  34. package/src/components/chip.css +5 -4
  35. package/src/components/chip.native.css +15 -0
  36. package/src/components/code.css +129 -0
  37. package/src/components/copy-to-clipboard.css +1 -1
  38. package/src/components/copy-to-clipboard.native.css +26 -0
  39. package/src/components/details.common.css +26 -0
  40. package/src/components/details.css +10 -9
  41. package/src/components/details.native.css +34 -0
  42. package/src/components/drawer.css +21 -4
  43. package/src/components/dropdown.common.css +23 -0
  44. package/src/components/dropdown.css +7 -9
  45. package/src/components/dropdown.native.css +27 -0
  46. package/src/components/fillable.css +1 -1
  47. package/src/components/filter.css +72 -29
  48. package/src/components/footer.css +8 -7
  49. package/src/components/form.common.css +81 -0
  50. package/src/components/form.css +65 -33
  51. package/src/components/form.native.css +182 -0
  52. package/src/components/header.common.css +35 -0
  53. package/src/components/header.css +29 -20
  54. package/src/components/header.native.css +29 -0
  55. package/src/components/hidden.css +11 -11
  56. package/src/components/index.css +34 -31
  57. package/src/components/kitchensink.css +2 -2
  58. package/src/components/layout.common.css +36 -0
  59. package/src/components/layout.css +12 -11
  60. package/src/components/layout.native.css +40 -0
  61. package/src/components/loader.common.css +7 -0
  62. package/src/components/loader.css +3 -1
  63. package/src/components/loader.native.css +5 -0
  64. package/src/components/masthead.css +1 -1
  65. package/src/components/misc.css +25 -1
  66. package/src/components/modal.common.css +16 -0
  67. package/src/components/modal.css +27 -14
  68. package/src/components/modal.native.css +18 -0
  69. package/src/components/nav.common.css +22 -0
  70. package/src/components/nav.css +8 -7
  71. package/src/components/nav.native.css +39 -0
  72. package/src/components/notification-banner.common.css +46 -0
  73. package/src/components/notification-banner.css +27 -7
  74. package/src/components/notification-banner.native.css +42 -0
  75. package/src/components/pagination.css +19 -3
  76. package/src/components/panel.common.css +30 -0
  77. package/src/components/panel.css +6 -15
  78. package/src/components/panel.native.css +26 -0
  79. package/src/components/phase-banner.common.css +23 -0
  80. package/src/components/phase-banner.css +7 -6
  81. package/src/components/phase-banner.native.css +30 -0
  82. package/src/components/postcss.config.js +7 -6
  83. package/src/components/radios.common.css +16 -0
  84. package/src/components/radios.css +5 -11
  85. package/src/components/radios.native.css +23 -0
  86. package/src/components/skeleton.common.css +20 -0
  87. package/src/components/skeleton.css +82 -0
  88. package/src/components/skeleton.native.css +53 -0
  89. package/src/components/stack.common.css +67 -0
  90. package/src/components/stack.css +25 -23
  91. package/src/components/stack.native.css +68 -0
  92. package/src/components/stepnav.css +2 -2
  93. package/src/components/summary-list.common.css +102 -0
  94. package/src/components/summary-list.css +103 -20
  95. package/src/components/summary-list.native.css +97 -0
  96. package/src/components/svg-icons.common.css +56 -0
  97. package/src/components/svg-icons.css +1 -1
  98. package/src/components/svg-icons.native.css +54 -0
  99. package/src/components/table.css +63 -19
  100. package/src/components/tabs.css +47 -62
  101. package/src/components/task-list.css +12 -7
  102. package/src/components/test.css +7 -0
  103. package/src/components/timeline.css +8 -7
  104. package/src/components/typography.common.css +135 -0
  105. package/src/components/typography.css +51 -108
  106. package/src/components/typography.native.css +128 -0
  107. package/src/components/warning-text.common.css +23 -0
  108. package/src/components/warning-text.css +10 -7
  109. package/src/components/warning-text.native.css +22 -0
  110. package/src/index.native.css +26 -0
  111. package/src/utilities/gap.css +141 -0
  112. package/src/utilities/index.css +6 -1655
  113. package/src/utilities/index.native.css +6 -0
  114. package/src/utilities/layout.css +231 -0
  115. package/src/utilities/layout.native.css +278 -0
  116. package/src/utilities/margin.css +4299 -0
  117. package/src/utilities/padding.css +4299 -0
  118. package/src/utilities/postcss.config.js +7 -6
  119. package/src/utilities/print.css +11 -0
  120. package/src/utilities/utilities.css +3 -1661
  121. package/tailwind.config.js +102 -105
  122. package/theming.js +121 -0
  123. package/defaultTheme/accordion.json +0 -16
  124. package/defaultTheme/back-to-top.json +0 -27
  125. package/defaultTheme/brandConfig.json +0 -145
  126. package/defaultTheme/breadcrumbs.json +0 -8
  127. package/defaultTheme/button.json +0 -90
  128. package/defaultTheme/card.json +0 -23
  129. package/defaultTheme/form.json +0 -30
  130. package/defaultTheme/globals.json +0 -81
  131. package/defaultTheme/index.js +0 -27
  132. package/defaultTheme/layout.json +0 -55
  133. package/defaultTheme/misc.json +0 -68
  134. package/defaultTheme/panel.json +0 -48
  135. package/defaultTheme/phase-banner.json +0 -8
  136. package/defaultTheme/radios.json +0 -8
  137. package/defaultTheme/summary-list.json +0 -8
  138. package/defaultTheme/typography.json +0 -295
  139. package/src/pages/admin-filtering-data.js +0 -160
  140. package/src/pages/admin.js +0 -61
  141. package/src/pages/dropdown.js +0 -249
  142. package/src/pages/form.js +0 -400
  143. package/src/pages/pagination.js +0 -124
  144. package/src/pages/table.js +0 -308
  145. package/themes.plugin.js +0 -148
@@ -1,71 +1,70 @@
1
- const plugin = require("tailwindcss/plugin");
2
- const defaultTheme = require("tailwindcss/defaultTheme");
3
- const themesPlugin = require("./themes.plugin");
1
+ const defaultTheme = require('tailwindcss/defaultTheme');
4
2
 
5
3
  const allColors = [
6
- "transparent",
7
- "current",
8
- "primary",
9
- "primary-100",
10
- "primary-200",
11
- "primary-300",
12
- "secondary",
13
- "secondary-100",
14
- "secondary-200",
15
- "secondary-300",
16
- "tertiary",
17
- "tertiary-100",
18
- "tertiary-200",
19
- "tertiary-300",
20
- "accent",
21
- "accent-focus",
22
- "accent-content",
23
- "base-100",
24
- "base-200",
25
- "base-300",
26
- "base-400",
27
- "base-500",
28
- "base-600",
29
- "base-700",
30
- "base-800",
31
- "base-900",
32
- "base-1000",
33
- "base-11000",
34
- "base-content",
35
- "base-content-secondary",
36
- "base-content-invert",
37
- "info",
38
- "info-hover",
39
- "success",
40
- "success-hover",
41
- "warning",
42
- "error",
43
- "error-hover",
44
- "focus",
45
- "link",
46
- "link-hover",
47
- "link-visited",
48
- "link-active",
49
- "white",
50
- "gray-100",
51
- "gray-200",
52
- "gray-300",
53
- "gray-400",
54
- "gray-500",
55
- "gray-600",
56
- "gray-700",
57
- "gray-800",
58
- "gray-900",
59
- "gray-1000",
60
- "gray-1100",
61
- "gray-1200",
62
- "black",
63
- "shadow200",
64
- "shadow600",
4
+ 'transparent',
5
+ 'current',
6
+ 'primary',
7
+ 'primary-100',
8
+ 'primary-200',
9
+ 'primary-300',
10
+ 'secondary',
11
+ 'secondary-100',
12
+ 'secondary-200',
13
+ 'secondary-300',
14
+ 'tertiary',
15
+ 'tertiary-100',
16
+ 'tertiary-200',
17
+ 'tertiary-300',
18
+ 'accent',
19
+ 'accent-focus',
20
+ 'accent-content',
21
+ 'base-100',
22
+ 'base-200',
23
+ 'base-300',
24
+ 'base-400',
25
+ 'base-500',
26
+ 'base-600',
27
+ 'base-700',
28
+ 'base-800',
29
+ 'base-900',
30
+ 'base-1000',
31
+ 'base-11000',
32
+ 'base-content',
33
+ 'base-content-secondary',
34
+ 'base-content-invert',
35
+ 'info',
36
+ 'info-hover',
37
+ 'success',
38
+ 'success-hover',
39
+ 'warning',
40
+ 'error',
41
+ 'error-hover',
42
+ 'error-text',
43
+ 'focus',
44
+ 'link',
45
+ 'link-hover',
46
+ 'link-visited',
47
+ 'link-active',
48
+ 'white',
49
+ 'gray-100',
50
+ 'gray-200',
51
+ 'gray-300',
52
+ 'gray-400',
53
+ 'gray-500',
54
+ 'gray-600',
55
+ 'gray-700',
56
+ 'gray-800',
57
+ 'gray-900',
58
+ 'gray-1000',
59
+ 'gray-1100',
60
+ 'gray-1200',
61
+ 'black',
62
+ 'shadow200',
63
+ 'shadow600',
65
64
  ];
66
65
 
67
66
  const colorVariables = allColors.reduce((colorVars, color) => {
68
- if (["transparent", "currentColor"].includes(color)) {
67
+ if (['transparent', 'currentColor'].includes(color)) {
69
68
  colorVars[color] = color;
70
69
  } else {
71
70
  colorVars[color] = ({ opacityVariable, opacityValue }) => {
@@ -80,94 +79,92 @@ const colorVariables = allColors.reduce((colorVars, color) => {
80
79
  }
81
80
  return colorVars;
82
81
  }, {});
82
+
83
83
  const screens = require('./screens.json');
84
84
  const screensWithPixels = Object.keys(screens).reduce((screenVars, screen) => {
85
85
  screenVars[screen] = `${screens[screen]}px`;
86
86
  return screenVars;
87
- },{})
87
+ }, {});
88
+
88
89
  /** @type {import('tailwindcss').Config} */
89
90
  module.exports = {
90
- darkMode: "class",
91
+ darkMode: 'class',
91
92
  content: {
92
- files: ["./src/*.css"],
93
+ files: ['./src/*.css'],
93
94
  relative: true,
94
95
  },
95
- themes: {
96
- light: require.resolve("./defaultTheme"),
97
- },
98
- defaultTheme: "light",
99
96
  theme: {
100
97
  colors: colorVariables,
98
+ screens: {
99
+ ...screensWithPixels,
100
+ print: { raw: 'print' },
101
+ xsOnly: { min: '0px', max: '639.98px' },
102
+ smOnly: { min: '640px', max: '767.98px' },
103
+ mdOnly: { min: '768px', max: '1023.98px' },
104
+ lgOnly: { min: '1024px', max: '1279.98px' },
105
+ xlOnly: { min: '1280px', max: '1535.98px' },
106
+ },
101
107
  container: {
102
108
  center: true,
103
109
  },
104
110
  fontSize: {
105
111
  ...defaultTheme.fontSize,
106
- lg: "1.1875rem",
107
- },
108
- screens: {
109
- ...screensWithPixels,
110
- print: { raw: "print" },
111
- xsOnly: { min: "0px", max: "639.98px" },
112
- smOnly: { min: "640px", max: "767.98px" },
113
- mdOnly: { min: "768px", max: "1023.98px" },
114
- lgOnly: { min: "1024px", max: "1279.98px" },
115
- xlOnly: { min: "1280px", max: "1535.98px" },
112
+ lg: '1.1875rem',
116
113
  },
117
114
  fontFamily: {
118
- sans: ["Roboto", ...defaultTheme.fontFamily.sans],
115
+ sans: ['Roboto', ...defaultTheme.fontFamily.sans],
119
116
  },
120
117
  extend: {
121
118
  height: {
122
- fit: "fit-content",
119
+ fit: 'fit-content',
123
120
  },
124
121
  width: {
125
- fit: "fit-content",
126
- "2xl": "42rem",
127
- "4xl": "56rem",
122
+ fit: 'fit-content',
123
+ '2xl': '42rem',
124
+ '4xl': '56rem',
128
125
  },
129
126
  maxWidth: {
130
- fit: "fit-content",
127
+ fit: 'fit-content',
131
128
  },
132
129
  minWidth: {
133
- 4: "1rem",
134
- 10: "2.5rem",
135
- 32: "8rem",
136
- 52: "13rem",
130
+ 4: '1rem',
131
+ 10: '2.5rem',
132
+ 12: '3rem',
133
+ 32: '8rem',
134
+ 52: '13rem',
137
135
  },
138
136
  minHeight: {
139
- 4: "1rem",
140
- 6: "1.5rem",
141
- 8: "2rem",
142
- 10: "2.5rem",
143
- 12: "3rem",
144
- 14: "3.5rem",
137
+ 4: '1rem',
138
+ 6: '1.5rem',
139
+ 8: '2rem',
140
+ 10: '2.5rem',
141
+ 12: '3rem',
142
+ 14: '3.5rem',
145
143
  },
146
144
  borderWidth: {
147
- 3: "3px",
148
- 5: "5px",
149
- 6: "6px",
145
+ 3: '3px',
146
+ 5: '5px',
147
+ 6: '6px',
150
148
  },
151
149
  flexGrow: {
152
- 2: "2",
150
+ 2: '2',
153
151
  },
154
152
  zIndex: {
155
- "/1": -1,
153
+ '/1': -1,
156
154
  1: 1,
157
155
  2: 2,
158
156
  3: 3,
159
157
  5: 5,
160
158
  },
161
159
  opacity: {
162
- 85: "0.85",
160
+ 85: '0.85',
163
161
  },
164
162
  margin: {
165
- 15: "3.75rem",
163
+ 15: '3.75rem',
166
164
  },
167
165
  boxShadow: {
168
- thick: "0 0 30px rgba(0, 0, 0, 0.6)",
166
+ thick: '0 0 30px rgba(0, 0, 0, 0.6)',
169
167
  },
170
168
  },
171
169
  },
172
- plugins: [plugin(themesPlugin)],
173
170
  };
package/theming.js ADDED
@@ -0,0 +1,121 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+ const postcss = require('postcss');
4
+ const postcssrc = require('postcss-load-config');
5
+ const postcssJs = require('postcss-js');
6
+
7
+ const DEFAULT_THEME = '@digigov/theme-default';
8
+
9
+ /**
10
+ * Load custom theme CSS as base styles.
11
+ *
12
+ * @param {object} [options={}]
13
+ * @param {string} [options.theme] - Custom theme package name or file path.
14
+ * @param {boolean} [options.eject] - Whether to ignore the default Digigov CSS base styles.
15
+ * @param {boolean} [options.debug] - Whether to log debug information.
16
+ * @returns {object} - The base styles as CSS-in-JS object.
17
+ */
18
+ function getThemeBaseStyle(options = {}) {
19
+ const { theme: userTheme, eject, debug } = options;
20
+
21
+ if (!userTheme) {
22
+ // do not load any theme
23
+ if (eject) return;
24
+ // load default theme
25
+ const css = loadCss(debug, DEFAULT_THEME);
26
+ return processCss(css);
27
+ }
28
+
29
+ // only load user theme
30
+ if (eject) {
31
+ const css = loadCss(debug, userTheme);
32
+ return processCss(css);
33
+ }
34
+
35
+ // load both default and user theme
36
+ const css = loadCss(debug, DEFAULT_THEME, userTheme);
37
+ return processCss(css);
38
+ }
39
+
40
+ /**
41
+ * Check if the given theme is a local file or package.
42
+ *
43
+ * @param {string} userTheme - File path or package name.
44
+ * @returns {boolean} - Whether the theme is a local file.
45
+ */
46
+ function isLocalTheme(userTheme) {
47
+ return (
48
+ userTheme.startsWith('./') ||
49
+ userTheme.startsWith('../') ||
50
+ path.isAbsolute(userTheme)
51
+ );
52
+ }
53
+
54
+ /**
55
+ * Load CSS from given package or file path.
56
+ *
57
+ * @param {boolean} debug - Whether to log debug information.
58
+ * @param {...string} pkgOrPathList - Package name or file path.
59
+ *
60
+ * @returns {string} - The CSS content.
61
+ */
62
+ function loadCss(debug, ...pkgOrPathList) {
63
+ const includedThemes = [...pkgOrPathList];
64
+ const css = pkgOrPathList
65
+ .map((pkgOrPath) => {
66
+ try {
67
+ let cssFilePath = isLocalTheme(pkgOrPath)
68
+ ? path.resolve(pkgOrPath)
69
+ : require.resolve(pkgOrPath);
70
+
71
+ if (!fs.existsSync(cssFilePath)) {
72
+ throw new Error(`File not found: ${cssFilePath}`);
73
+ }
74
+
75
+ if (path.extname(cssFilePath) === '.js') {
76
+ const dir = path.dirname(cssFilePath);
77
+ const indexCssFile = path.join(dir, 'index.css');
78
+ if (fs.existsSync(indexCssFile)) {
79
+ cssFilePath = indexCssFile;
80
+ } else {
81
+ throw new Error('No CSS index file found');
82
+ }
83
+ }
84
+
85
+ return fs.readFileSync(cssFilePath).toString();
86
+ } catch (error) {
87
+ console.error(`Failed to load CSS from ${pkgOrPath}.`, error);
88
+ delete includedThemes[includedThemes.indexOf(pkgOrPath)];
89
+ return '';
90
+ }
91
+ })
92
+ .join('\n');
93
+
94
+ if (debug && includedThemes.length > 0)
95
+ console.log(
96
+ '\x1b[32m%s\x1b[0m',
97
+ `🎨 Including theme${includedThemes.length > 1 ? 's' : ''}:`,
98
+ '\x1b[0m',
99
+ '' + includedThemes.join(', ')
100
+ );
101
+
102
+ return css;
103
+ }
104
+
105
+ /**
106
+ * Process CSS into a CSS-in-JS object.
107
+ * @param {string} css - The CSS content to process.
108
+ * @returns {object} - The merged CSS-in-JS object.
109
+ */
110
+ function processCss(css) {
111
+ try {
112
+ const { plugins, options } = postcssrc.sync({}, __dirname);
113
+ const processedCss = postcss(plugins).process(css, options).result.root;
114
+ return postcssJs.objectify(processedCss);
115
+ } catch (error) {
116
+ console.error('Failed to process CSS.', error);
117
+ return {};
118
+ }
119
+ }
120
+
121
+ module.exports = getThemeBaseStyle;
@@ -1,16 +0,0 @@
1
- {
2
- "accordion__section-heading": {
3
- "font-size": {
4
- "xs": "var(--text-lg)",
5
- "md": "var(--text-xl)"
6
- }
7
- },
8
- "accordion__section-summary": {
9
- "background": {
10
- "xs": "var(--color-base-100)"
11
- },
12
- "background-hover": {
13
- "xs": "var(--color-base-200)"
14
- }
15
- }
16
- }
@@ -1,27 +0,0 @@
1
- {
2
- "back-to-top-link": {
3
- "color": {
4
- "xs": "var(--color-link)"
5
- },
6
- "color-active": {
7
- "xs": "var(--color-link-active)"
8
- },
9
- "color-hover": {
10
- "xs": "var(--color-link-hover)"
11
- },
12
- "padding": {
13
- "xs": "0px"
14
- },
15
- "font-size": {
16
- "xs": "var(--text-base)",
17
- "md": "var(--text-lg)"
18
- },
19
- "line-height": {
20
- "xs": "var(--line-h-base)",
21
- "md": "var(--line-h-lg)"
22
- },
23
- "letter-spacing": {
24
- "xs": "var(--letter-spacing-normal)"
25
- }
26
- }
27
- }
@@ -1,145 +0,0 @@
1
- {
2
- "backgroundColor": "gray",
3
- "backgroundContrastRatios": [
4
- 1, 1.19, 1.6, 2.11, 2.87, 3.9, 5.3, 7.91, 12.13, 14.74, 18, 21
5
- ],
6
- "colors": {
7
- "dynamic": {
8
- "gray": ["#6c6a71", "#252930"],
9
- "red": ["#b60202"],
10
- "orange": ["#ff9900"],
11
- "green": ["#10874c", "#006636"],
12
- "blue": ["#00b0f0", "#0149a7"],
13
- "purple": ["#9B69E2", "#4c2b91"]
14
- },
15
- "static": {
16
- "yellow": "#ffdd00"
17
- }
18
- },
19
- "contrastRatios": [2.39, 3.1, 4.54, 5.65, 7, 10.2, 12.13],
20
- "brandColors": {
21
- "primary": "#003375",
22
- "secondary": "#00b0f0",
23
- "tertiary": "#0065b3"
24
- },
25
- "defaultTheme": "light",
26
- "themes": {
27
- "default": {
28
- "base": {
29
- "100": ["gray", "100"],
30
- "200": ["gray", "200"],
31
- "300": ["gray", "300"],
32
- "400": ["gray", "400"],
33
- "500": ["gray", "500"],
34
- "600": ["gray", "600"],
35
- "700": ["gray", "700"],
36
- "800": ["gray", "800"],
37
- "900": ["gray", "900"],
38
- "1000": ["gray", "1000"],
39
- "1100": ["gray", "1100"],
40
- "content": ["gray", "1000"],
41
- "content-secondary": ["gray", "700"],
42
- "content-invert": ["gray", "100"]
43
- },
44
- "accent": {
45
- "default": ["gray", "1000"],
46
- "focus": ["gray", "900"],
47
- "content": ["gray", "100"]
48
- },
49
- "focus": {
50
- "default": ["yellow", "100"]
51
- },
52
- "error": {
53
- "default": ["red", "500"],
54
- "hover": ["red", "600"]
55
- },
56
- "success": {
57
- "default": ["green", "500"],
58
- "hover": ["green", "600"]
59
- },
60
- "link": {
61
- "default": ["blue", "500"],
62
- "hover": ["blue", "600"],
63
- "active": ["gray", "1000"],
64
- "visited": ["purple", "600"]
65
- },
66
- "warning": { "default": ["orange", "100"] },
67
- "info": {
68
- "default": ["blue", "400"],
69
- "hover": ["blue", "500"]
70
- },
71
- "footer": {
72
- "default": [
73
- "blue",
74
- "500"
75
- ],
76
- "hover": [
77
- "blue",
78
- "600"
79
- ]
80
- },
81
- "white": { "default": ["gray", "100"] },
82
- "black": { "default": ["gray", "1200"] }
83
- },
84
- "light": {
85
- "_config": {
86
- "lightness": 100,
87
- "fgColor": "#0D0F15"
88
- }
89
- },
90
- "dark": {
91
- "_config": {
92
- "lightness": 6,
93
- "fgColor": "#F5F5F6"
94
- },
95
- "error": {
96
- "default": ["red", "200"],
97
- "hover": ["red", "300"]
98
- },
99
- "success": {
100
- "default": ["green", "200"],
101
- "hover": ["green", "300"]
102
- },
103
- "link": {
104
- "default": ["blue", "400"],
105
- "hover": ["blue", "500"],
106
- "active": ["blue", "100"],
107
- "visited": ["purple", "300"]
108
- },
109
- "warning": { "default": ["orange", "500"] },
110
- "info": {
111
- "default": ["blue", "300"],
112
- "hover": ["blue", "400"]
113
- },
114
- "white": { "default": ["gray", "1200"] },
115
- "black": { "default": ["gray", "100"] }
116
- },
117
- "darker": {
118
- "_config": {
119
- "lightness": 0,
120
- "fgColor": "#EAEAEB"
121
- },
122
- "error": {
123
- "default": ["red", "300"],
124
- "hover": ["red", "400"]
125
- },
126
- "success": {
127
- "default": ["green", "300"],
128
- "hover": ["green", "400"]
129
- },
130
- "link": {
131
- "default": ["blue", "400"],
132
- "hover": ["blue", "500"],
133
- "active": ["blue", "100"],
134
- "visited": ["purple", "300"]
135
- },
136
- "warning": { "default": ["orange", "500"] },
137
- "info": {
138
- "default": ["blue", "200"],
139
- "hover": ["blue", "300"]
140
- },
141
- "white": { "default": ["gray", "1200"] },
142
- "black": { "default": ["gray", "100"] }
143
- }
144
- }
145
- }
@@ -1,8 +0,0 @@
1
- {
2
- "breadcrumbs__list-item": {
3
- "font-size": {
4
- "xs": "var(--text-sm)",
5
- "md": "var(--text-base)"
6
- }
7
- }
8
- }
@@ -1,90 +0,0 @@
1
- {
2
- "btn": {
3
- "border-radius": {
4
- "xs": "0px"
5
- },
6
- "padding": {
7
- "xs": "0.5rem 1.25rem",
8
- "print": "0.5rem 1rem"
9
- },
10
- "letter-spacing": {
11
- "xs": "var(--letter-spacing-wide)"
12
- },
13
- "font-size": {
14
- "xs": "var(--text-base)",
15
- "md": "var(--text-lg)"
16
- }
17
- },
18
- "btn-cta": {
19
- "font-size": {
20
- "xs": "var(--text-lg)",
21
- "md": "var(--text-xl)"
22
- }
23
- },
24
- "btn-primary": {
25
- "background-color": {
26
- "xs": "var(--color-success)",
27
- "print": "var(--color-white)"
28
- },
29
- "color": {
30
- "xs": "var(--color-white)",
31
- "print": "var(--color-base-content)"
32
- },
33
- "background-color-hover": {
34
- "xs": "var(--color-success-hover)"
35
- },
36
- "color-hover": {
37
- "xs": "var(--color-white)"
38
- },
39
- "background-color-active": {
40
- "xs": "var(--color-success-hover)"
41
- },
42
- "box-shadow": {
43
- "xs": "0 2px 0 var(--color-base-content)"
44
- }
45
- },
46
- "btn-secondary": {
47
- "background-color": {
48
- "xs": "var(--color-base-300)",
49
- "print": "var(--color-white)"
50
- },
51
- "color": {
52
- "xs": "var(--color-base-content)",
53
- "print": "var(--color-base-content)"
54
- },
55
- "background-color-hover": {
56
- "xs": "var(--color-base-400)"
57
- },
58
- "color-hover": {
59
- "xs": "var(--color-base-content)"
60
- },
61
- "background-color-active": {
62
- "xs": "var(--color-base-500)"
63
- },
64
- "box-shadow": {
65
- "xs": "0 2px 0 var(--color-base-500)"
66
- }
67
- },
68
- "btn-warning": {
69
- "background-color": {
70
- "xs": "var(--color-error)",
71
- "print": "var(--color-white)"
72
- },
73
- "color": {
74
- "xs": "var(--color-white)",
75
- "print": "var(--color-base-content)"
76
- },
77
- "background-color-hover": {
78
- "xs": "var(--color-error-hover)"
79
- },
80
- "color-hover": {
81
- "xs": "var(--color-white)"
82
- },
83
- "background-color-active": {
84
- "xs": "var(--color-error-hover)"
85
- },
86
- "box-shadow": {
87
- "xs": "0 2px 0 var(--color-base-content)"
88
- }
89
- }
90
- }