@digigov/css 2.0.0-daaf7bdf → 2.0.0-e20fed09

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 (117) hide show
  1. package/dist/base/index.css +1 -1
  2. package/dist/base.js +1 -1
  3. package/dist/components.js +1 -1
  4. package/dist/digigov.css +3 -3
  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 +13 -13
  9. package/postcss.config.js +4 -4
  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 +32 -10
  16. package/src/components/accordion.native.css +27 -0
  17. package/src/components/autocomplete.css +6 -4
  18. package/src/components/blockquote.common.css +11 -11
  19. package/src/components/blockquote.css +6 -6
  20. package/src/components/blockquote.native.css +4 -1
  21. package/src/components/breadcrumbs.css +1 -1
  22. package/src/components/button.css +1 -1
  23. package/src/components/button.native.css +6 -7
  24. package/src/components/card.common.css +30 -30
  25. package/src/components/card.css +1 -1
  26. package/src/components/checkboxes.common.css +13 -13
  27. package/src/components/checkboxes.native.css +2 -3
  28. package/src/components/chip.common.css +19 -0
  29. package/src/components/chip.css +5 -4
  30. package/src/components/chip.native.css +15 -0
  31. package/src/components/code.css +7 -7
  32. package/src/components/copy-to-clipboard.css +1 -1
  33. package/src/components/copy-to-clipboard.native.css +2 -4
  34. package/src/components/details.common.css +23 -23
  35. package/src/components/details.css +4 -0
  36. package/src/components/details.native.css +8 -0
  37. package/src/components/drawer.css +20 -3
  38. package/src/components/dropdown.common.css +19 -19
  39. package/src/components/dropdown.native.css +10 -11
  40. package/src/components/filter.css +71 -22
  41. package/src/components/footer.css +8 -7
  42. package/src/components/form.common.css +75 -76
  43. package/src/components/form.css +8 -4
  44. package/src/components/form.native.css +102 -53
  45. package/src/components/header.common.css +32 -33
  46. package/src/components/header.css +9 -13
  47. package/src/components/header.native.css +5 -10
  48. package/src/components/kitchensink.css +2 -2
  49. package/src/components/layout.common.css +2 -2
  50. package/src/components/layout.css +1 -1
  51. package/src/components/layout.native.css +1 -0
  52. package/src/components/loader.common.css +7 -0
  53. package/src/components/loader.css +3 -1
  54. package/src/components/loader.native.css +5 -0
  55. package/src/components/modal.common.css +16 -0
  56. package/src/components/modal.css +19 -15
  57. package/src/components/modal.native.css +18 -0
  58. package/src/components/nav.common.css +18 -18
  59. package/src/components/nav.native.css +4 -6
  60. package/src/components/notification-banner.common.css +2 -2
  61. package/src/components/notification-banner.css +20 -2
  62. package/src/components/pagination.css +19 -3
  63. package/src/components/panel.common.css +26 -26
  64. package/src/components/panel.native.css +8 -2
  65. package/src/components/phase-banner.native.css +0 -1
  66. package/src/components/postcss.config.js +7 -6
  67. package/src/components/radios.common.css +1 -1
  68. package/src/components/radios.native.css +2 -3
  69. package/src/components/skeleton.common.css +20 -0
  70. package/src/components/skeleton.css +7 -10
  71. package/src/components/skeleton.native.css +53 -0
  72. package/src/components/stack.common.css +67 -0
  73. package/src/components/stack.css +23 -21
  74. package/src/components/stack.native.css +68 -0
  75. package/src/components/summary-list.common.css +5 -2
  76. package/src/components/summary-list.css +10 -7
  77. package/src/components/summary-list.native.css +5 -1
  78. package/src/components/svg-icons.common.css +1 -1
  79. package/src/components/svg-icons.native.css +2 -3
  80. package/src/components/table.css +44 -11
  81. package/src/components/test.css +2 -2
  82. package/src/components/typography.common.css +2 -7
  83. package/src/components/typography.css +20 -18
  84. package/src/components/typography.native.css +31 -0
  85. package/src/components/warning-text.common.css +1 -1
  86. package/src/components/warning-text.css +8 -6
  87. package/src/index.native.css +7 -1
  88. package/src/utilities/gap.css +141 -0
  89. package/src/utilities/index.css +6 -3
  90. package/src/utilities/index.native.css +6 -2
  91. package/src/utilities/layout.css +1 -1
  92. package/src/utilities/layout.native.css +1 -1
  93. package/src/utilities/margin.css +4299 -0
  94. package/src/utilities/padding.css +4299 -0
  95. package/src/utilities/postcss.config.js +7 -6
  96. package/src/utilities/print.css +1 -1
  97. package/src/utilities/utilities.css +3 -2378
  98. package/tailwind.config.js +102 -106
  99. package/theming.js +121 -0
  100. package/defaultTheme/accordion.json +0 -16
  101. package/defaultTheme/back-to-top.json +0 -27
  102. package/defaultTheme/brandConfig.json +0 -147
  103. package/defaultTheme/breadcrumbs.json +0 -8
  104. package/defaultTheme/button.json +0 -94
  105. package/defaultTheme/card.json +0 -23
  106. package/defaultTheme/form.json +0 -132
  107. package/defaultTheme/globals.json +0 -81
  108. package/defaultTheme/index.js +0 -27
  109. package/defaultTheme/layout.json +0 -55
  110. package/defaultTheme/misc.json +0 -68
  111. package/defaultTheme/panel.json +0 -48
  112. package/defaultTheme/phase-banner.json +0 -8
  113. package/defaultTheme/radios.json +0 -8
  114. package/defaultTheme/summary-list.json +0 -8
  115. package/defaultTheme/typography.json +0 -295
  116. package/src/utilities/spacing.css +0 -2133
  117. package/themes.plugin.js +0 -148
@@ -1,72 +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
- "error-text",
45
- "focus",
46
- "link",
47
- "link-hover",
48
- "link-visited",
49
- "link-active",
50
- "white",
51
- "gray-100",
52
- "gray-200",
53
- "gray-300",
54
- "gray-400",
55
- "gray-500",
56
- "gray-600",
57
- "gray-700",
58
- "gray-800",
59
- "gray-900",
60
- "gray-1000",
61
- "gray-1100",
62
- "gray-1200",
63
- "black",
64
- "shadow200",
65
- "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',
66
64
  ];
67
65
 
68
66
  const colorVariables = allColors.reduce((colorVars, color) => {
69
- if (["transparent", "currentColor"].includes(color)) {
67
+ if (['transparent', 'currentColor'].includes(color)) {
70
68
  colorVars[color] = color;
71
69
  } else {
72
70
  colorVars[color] = ({ opacityVariable, opacityValue }) => {
@@ -81,94 +79,92 @@ const colorVariables = allColors.reduce((colorVars, color) => {
81
79
  }
82
80
  return colorVars;
83
81
  }, {});
82
+
84
83
  const screens = require('./screens.json');
85
84
  const screensWithPixels = Object.keys(screens).reduce((screenVars, screen) => {
86
85
  screenVars[screen] = `${screens[screen]}px`;
87
86
  return screenVars;
88
- },{})
87
+ }, {});
88
+
89
89
  /** @type {import('tailwindcss').Config} */
90
90
  module.exports = {
91
- darkMode: "class",
91
+ darkMode: 'class',
92
92
  content: {
93
- files: ["./src/*.css"],
93
+ files: ['./src/*.css'],
94
94
  relative: true,
95
95
  },
96
- themes: {
97
- light: require.resolve("./defaultTheme"),
98
- },
99
- defaultTheme: "light",
100
96
  theme: {
101
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
+ },
102
107
  container: {
103
108
  center: true,
104
109
  },
105
110
  fontSize: {
106
111
  ...defaultTheme.fontSize,
107
- lg: "1.1875rem",
108
- },
109
- screens: {
110
- ...screensWithPixels,
111
- print: { raw: "print" },
112
- xsOnly: { min: "0px", max: "639.98px" },
113
- smOnly: { min: "640px", max: "767.98px" },
114
- mdOnly: { min: "768px", max: "1023.98px" },
115
- lgOnly: { min: "1024px", max: "1279.98px" },
116
- xlOnly: { min: "1280px", max: "1535.98px" },
112
+ lg: '1.1875rem',
117
113
  },
118
114
  fontFamily: {
119
- sans: ["Roboto", ...defaultTheme.fontFamily.sans],
115
+ sans: ['Roboto', ...defaultTheme.fontFamily.sans],
120
116
  },
121
117
  extend: {
122
118
  height: {
123
- fit: "fit-content",
119
+ fit: 'fit-content',
124
120
  },
125
121
  width: {
126
- fit: "fit-content",
127
- "2xl": "42rem",
128
- "4xl": "56rem",
122
+ fit: 'fit-content',
123
+ '2xl': '42rem',
124
+ '4xl': '56rem',
129
125
  },
130
126
  maxWidth: {
131
- fit: "fit-content",
127
+ fit: 'fit-content',
132
128
  },
133
129
  minWidth: {
134
- 4: "1rem",
135
- 10: "2.5rem",
136
- 32: "8rem",
137
- 52: "13rem",
130
+ 4: '1rem',
131
+ 10: '2.5rem',
132
+ 12: '3rem',
133
+ 32: '8rem',
134
+ 52: '13rem',
138
135
  },
139
136
  minHeight: {
140
- 4: "1rem",
141
- 6: "1.5rem",
142
- 8: "2rem",
143
- 10: "2.5rem",
144
- 12: "3rem",
145
- 14: "3.5rem",
137
+ 4: '1rem',
138
+ 6: '1.5rem',
139
+ 8: '2rem',
140
+ 10: '2.5rem',
141
+ 12: '3rem',
142
+ 14: '3.5rem',
146
143
  },
147
144
  borderWidth: {
148
- 3: "3px",
149
- 5: "5px",
150
- 6: "6px",
145
+ 3: '3px',
146
+ 5: '5px',
147
+ 6: '6px',
151
148
  },
152
149
  flexGrow: {
153
- 2: "2",
150
+ 2: '2',
154
151
  },
155
152
  zIndex: {
156
- "/1": -1,
153
+ '/1': -1,
157
154
  1: 1,
158
155
  2: 2,
159
156
  3: 3,
160
157
  5: 5,
161
158
  },
162
159
  opacity: {
163
- 85: "0.85",
160
+ 85: '0.85',
164
161
  },
165
162
  margin: {
166
- 15: "3.75rem",
163
+ 15: '3.75rem',
167
164
  },
168
165
  boxShadow: {
169
- thick: "0 0 30px rgba(0, 0, 0, 0.6)",
166
+ thick: '0 0 30px rgba(0, 0, 0, 0.6)',
170
167
  },
171
168
  },
172
169
  },
173
- plugins: [plugin(themesPlugin)],
174
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,147 +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
- "text": ["red", "500"]
56
- },
57
- "success": {
58
- "default": ["green", "500"],
59
- "hover": ["green", "600"]
60
- },
61
- "link": {
62
- "default": ["blue", "500"],
63
- "hover": ["blue", "600"],
64
- "active": ["gray", "1000"],
65
- "visited": ["purple", "600"]
66
- },
67
- "warning": { "default": ["orange", "100"] },
68
- "info": {
69
- "default": ["blue", "400"],
70
- "hover": ["blue", "500"]
71
- },
72
- "footer": {
73
- "default": [
74
- "blue",
75
- "500"
76
- ],
77
- "hover": [
78
- "blue",
79
- "600"
80
- ]
81
- },
82
- "white": { "default": ["gray", "100"] },
83
- "black": { "default": ["gray", "1200"] }
84
- },
85
- "light": {
86
- "_config": {
87
- "lightness": 100,
88
- "fgColor": "#0D0F15"
89
- }
90
- },
91
- "dark": {
92
- "_config": {
93
- "lightness": 6,
94
- "fgColor": "#F5F5F6"
95
- },
96
- "error": {
97
- "default": ["red", "200"],
98
- "hover": ["red", "300"],
99
- "text": ["red", "300"]
100
- },
101
- "success": {
102
- "default": ["green", "200"],
103
- "hover": ["green", "300"]
104
- },
105
- "link": {
106
- "default": ["blue", "400"],
107
- "hover": ["blue", "500"],
108
- "active": ["blue", "100"],
109
- "visited": ["purple", "300"]
110
- },
111
- "warning": { "default": ["orange", "500"] },
112
- "info": {
113
- "default": ["blue", "300"],
114
- "hover": ["blue", "400"]
115
- },
116
- "white": { "default": ["gray", "1200"] },
117
- "black": { "default": ["gray", "100"] }
118
- },
119
- "darker": {
120
- "_config": {
121
- "lightness": 0,
122
- "fgColor": "#EAEAEB"
123
- },
124
- "error": {
125
- "default": ["red", "300"],
126
- "hover": ["red", "400"]
127
- },
128
- "success": {
129
- "default": ["green", "300"],
130
- "hover": ["green", "400"]
131
- },
132
- "link": {
133
- "default": ["blue", "400"],
134
- "hover": ["blue", "500"],
135
- "active": ["blue", "100"],
136
- "visited": ["purple", "300"]
137
- },
138
- "warning": { "default": ["orange", "500"] },
139
- "info": {
140
- "default": ["blue", "200"],
141
- "hover": ["blue", "300"]
142
- },
143
- "white": { "default": ["gray", "1200"] },
144
- "black": { "default": ["gray", "100"] }
145
- }
146
- }
147
- }
@@ -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,94 +0,0 @@
1
- {
2
- "btn": {
3
- "border-radius": {
4
- "xs": "0px"
5
- },
6
- "padding-y": {
7
- "xs": "0.5rem",
8
- "print": "0.5rem"
9
- },
10
- "padding-x": {
11
- "xs": "1.25rem",
12
- "print": "1rem"
13
- },
14
- "letter-spacing": {
15
- "xs": "var(--letter-spacing-wide)"
16
- },
17
- "font-size": {
18
- "xs": "var(--text-base)",
19
- "md": "var(--text-lg)"
20
- }
21
- },
22
- "btn-cta": {
23
- "font-size": {
24
- "xs": "var(--text-lg)",
25
- "md": "var(--text-xl)"
26
- }
27
- },
28
- "btn-primary": {
29
- "background-color": {
30
- "xs": "var(--color-success)",
31
- "print": "var(--color-white)"
32
- },
33
- "color": {
34
- "xs": "var(--color-white)",
35
- "print": "var(--color-base-content)"
36
- },
37
- "background-color-hover": {
38
- "xs": "var(--color-success-hover)"
39
- },
40
- "color-hover": {
41
- "xs": "var(--color-white)"
42
- },
43
- "background-color-active": {
44
- "xs": "var(--color-success-hover)"
45
- },
46
- "box-shadow": {
47
- "xs": "0 2px 0 var(--color-base-content)"
48
- }
49
- },
50
- "btn-secondary": {
51
- "background-color": {
52
- "xs": "var(--color-base-300)",
53
- "print": "var(--color-white)"
54
- },
55
- "color": {
56
- "xs": "var(--color-base-content)",
57
- "print": "var(--color-base-content)"
58
- },
59
- "background-color-hover": {
60
- "xs": "var(--color-base-400)"
61
- },
62
- "color-hover": {
63
- "xs": "var(--color-base-content)"
64
- },
65
- "background-color-active": {
66
- "xs": "var(--color-base-500)"
67
- },
68
- "box-shadow": {
69
- "xs": "0 2px 0 var(--color-base-500)"
70
- }
71
- },
72
- "btn-warning": {
73
- "background-color": {
74
- "xs": "var(--color-error)",
75
- "print": "var(--color-white)"
76
- },
77
- "color": {
78
- "xs": "var(--color-white)",
79
- "print": "var(--color-base-content)"
80
- },
81
- "background-color-hover": {
82
- "xs": "var(--color-error-hover)"
83
- },
84
- "color-hover": {
85
- "xs": "var(--color-white)"
86
- },
87
- "background-color-active": {
88
- "xs": "var(--color-error-hover)"
89
- },
90
- "box-shadow": {
91
- "xs": "0 2px 0 var(--color-base-content)"
92
- }
93
- }
94
- }