hextimator 0.13.0 → 0.14.1
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/CHANGELOG.md +16 -0
- package/README.md +9 -7
- package/dist/{HextimatePaletteBuilder-BsQOgUcZ.d.ts → HextimatePaletteBuilder-CPmTYcEY.d.ts} +1 -1
- package/dist/{chunk-TEZ2I4CJ.js → chunk-23UBW2KU.js} +1 -1
- package/dist/{chunk-V4RWDZQM.js → chunk-FEOOTCAG.js} +25 -23
- package/dist/cli.js +26 -24
- package/dist/{index-CA19MMV4.d.ts → index-An21acU4.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/presets.d.ts +2 -2
- package/dist/presets.js +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +2 -2
- package/fallback.css +15 -0
- package/package.json +1 -1
- package/tailwind-inverted.css +15 -0
- package/tailwind.css +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## 0.14.1
|
|
2
|
+
|
|
3
|
+
### Patch Changes
|
|
4
|
+
|
|
5
|
+
- [#177](https://github.com/fgrgic/hextimator/pull/177) [`e035074`](https://github.com/fgrgic/hextimator/commit/e03507480239b98b4eb9aed6116487f69cf10d01) Thanks [@fgrgic](https://github.com/fgrgic)! - Wrong dist shipped with previous version, shipping correct one in this
|
|
6
|
+
|
|
7
|
+
## 0.14.0
|
|
8
|
+
|
|
9
|
+
### Minor Changes
|
|
10
|
+
|
|
11
|
+
- [#173](https://github.com/fgrgic/hextimator/pull/173) [`f1fe2ca`](https://github.com/fgrgic/hextimator/commit/f1fe2ca5a922080b7c9c20d87ea43a8279cb0782) Thanks [@fgrgic](https://github.com/fgrgic)! - Adds `foreground-weak` variant as one of the default variants.
|
|
12
|
+
|
|
13
|
+
`foreground-weak` is the weakest contrast color to its background that still satisfies the required contrast ratio (e.g. `AAA`, or 7:1)
|
|
14
|
+
|
|
15
|
+
Not a breaking change, additive only. If you had specific overrides for `foreground-weak`, they will continue working as expected.
|
|
16
|
+
|
|
1
17
|
## 0.13.0
|
|
2
18
|
|
|
3
19
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -88,13 +88,15 @@ npx hextimator '#BADA55' --preset bold
|
|
|
88
88
|
|
|
89
89
|
## What is in every theme
|
|
90
90
|
|
|
91
|
-
| Role | Variants
|
|
92
|
-
| -------- |
|
|
93
|
-
| surface | DEFAULT, strong, weak, foreground |
|
|
94
|
-
| accent | DEFAULT, strong, weak, foreground |
|
|
95
|
-
| positive | DEFAULT, strong, weak, foreground |
|
|
96
|
-
| negative | DEFAULT, strong, weak, foreground |
|
|
97
|
-
| caution | DEFAULT, strong, weak, foreground |
|
|
91
|
+
| Role | Variants |
|
|
92
|
+
| -------- | ------------------------------------------------- |
|
|
93
|
+
| surface | DEFAULT, strong, weak, foreground, foreground-weak |
|
|
94
|
+
| accent | DEFAULT, strong, weak, foreground, foreground-weak |
|
|
95
|
+
| positive | DEFAULT, strong, weak, foreground, foreground-weak |
|
|
96
|
+
| negative | DEFAULT, strong, weak, foreground, foreground-weak |
|
|
97
|
+
| caution | DEFAULT, strong, weak, foreground, foreground-weak |
|
|
98
|
+
|
|
99
|
+
`foreground-weak` is the softest foreground that still meets your contrast target against the role's DEFAULT background - use it for secondary or muted text.
|
|
98
100
|
|
|
99
101
|
Plus **`brand-exact`** (your input color, unchanged) and **`brand-exact-foreground`**.
|
|
100
102
|
|
package/dist/{HextimatePaletteBuilder-BsQOgUcZ.d.ts → HextimatePaletteBuilder-CPmTYcEY.d.ts}
RENAMED
|
@@ -317,7 +317,7 @@ type FormatResult = FlatTokenMap | NestedTokenMap | string;
|
|
|
317
317
|
interface HextimatePreset {
|
|
318
318
|
/** Style options (contrast, hue shifts, lightness, chroma). Applied before roles/variants/tokens. */
|
|
319
319
|
style?: HextimateStyleOptions;
|
|
320
|
-
/** Extra roles to add to the palette (each generates DEFAULT, strong, weak, foreground variants). */
|
|
320
|
+
/** Extra roles to add to the palette (each generates DEFAULT, strong, weak, foreground, foreground-weak variants). */
|
|
321
321
|
roles?: Array<{
|
|
322
322
|
name: string;
|
|
323
323
|
color: ColorInput | DerivedToken;
|
|
@@ -726,12 +726,7 @@ function adaptPalette(palette, type, severity = 1) {
|
|
|
726
726
|
const result = {};
|
|
727
727
|
for (const role of Object.keys(palette)) {
|
|
728
728
|
const scale = palette[role];
|
|
729
|
-
const newScale = {
|
|
730
|
-
DEFAULT: scale.DEFAULT,
|
|
731
|
-
strong: scale.strong,
|
|
732
|
-
weak: scale.weak,
|
|
733
|
-
foreground: scale.foreground
|
|
734
|
-
};
|
|
729
|
+
const newScale = {};
|
|
735
730
|
for (const variant of Object.keys(scale)) {
|
|
736
731
|
newScale[variant] = daltonizeColor(parse(scale[variant]), type, severity);
|
|
737
732
|
}
|
|
@@ -757,12 +752,7 @@ function simulatePalette(palette, type, severity = 1) {
|
|
|
757
752
|
const result = {};
|
|
758
753
|
for (const role of Object.keys(palette)) {
|
|
759
754
|
const scale = palette[role];
|
|
760
|
-
const newScale = {
|
|
761
|
-
DEFAULT: scale.DEFAULT,
|
|
762
|
-
strong: scale.strong,
|
|
763
|
-
weak: scale.weak,
|
|
764
|
-
foreground: scale.foreground
|
|
765
|
-
};
|
|
755
|
+
const newScale = {};
|
|
766
756
|
for (const variant of Object.keys(scale)) {
|
|
767
757
|
newScale[variant] = simulateColor(parse(scale[variant]), type, severity);
|
|
768
758
|
}
|
|
@@ -1384,13 +1374,27 @@ function expandColorToScale(color, themeType, options) {
|
|
|
1384
1374
|
contrastTarget,
|
|
1385
1375
|
skipSurfaceCap
|
|
1386
1376
|
);
|
|
1377
|
+
const foregroundWeakColorOKLCH = computeSoftestForeground(
|
|
1378
|
+
foregroundColorOKLCH,
|
|
1379
|
+
normalizedColorOKLCH,
|
|
1380
|
+
contrastTarget
|
|
1381
|
+
);
|
|
1387
1382
|
return {
|
|
1388
1383
|
DEFAULT: { ...normalizedColorOKLCH },
|
|
1389
1384
|
strong: { ...strongColorOKLCH },
|
|
1390
1385
|
weak: { ...weakColorOKLCH },
|
|
1391
|
-
foreground: { ...foregroundColorOKLCH }
|
|
1386
|
+
foreground: { ...foregroundColorOKLCH },
|
|
1387
|
+
"foreground-weak": { ...foregroundWeakColorOKLCH }
|
|
1392
1388
|
};
|
|
1393
1389
|
}
|
|
1390
|
+
function computeSoftestForeground(foreground, base, contrastTarget) {
|
|
1391
|
+
const boundaryL = findContrastBoundaryLightness(
|
|
1392
|
+
foreground,
|
|
1393
|
+
base,
|
|
1394
|
+
contrastTarget
|
|
1395
|
+
);
|
|
1396
|
+
return { ...foreground, l: boundaryL ?? foreground.l };
|
|
1397
|
+
}
|
|
1394
1398
|
var warnedLegacyLightness = false;
|
|
1395
1399
|
function normalizeBaseLightnessRange(custom) {
|
|
1396
1400
|
let lo = Number(custom[0]);
|
|
@@ -2092,21 +2096,19 @@ var HextimatePaletteBuilder = class _HextimatePaletteBuilder {
|
|
|
2092
2096
|
return;
|
|
2093
2097
|
}
|
|
2094
2098
|
if (edge === "foreground") {
|
|
2095
|
-
const contrastTarget = resolveContrastRatio(this.options.minContrastRatio) +
|
|
2099
|
+
const contrastTarget = resolveContrastRatio(this.options.minContrastRatio) + CONTRAST_MARGIN;
|
|
2096
2100
|
for (const palette of [this.lightPalette, this.darkPalette]) {
|
|
2097
2101
|
for (const role of Object.keys(palette)) {
|
|
2098
2102
|
const scale = palette[role];
|
|
2099
|
-
const
|
|
2100
|
-
|
|
2101
|
-
parse(scale.
|
|
2102
|
-
parse(scale.DEFAULT),
|
|
2103
|
+
const soft = computeSoftestForeground(
|
|
2104
|
+
convert(parse(scale.foreground), "oklch"),
|
|
2105
|
+
convert(parse(scale.DEFAULT), "oklch"),
|
|
2103
2106
|
contrastTarget
|
|
2104
2107
|
);
|
|
2105
2108
|
scale[name] = {
|
|
2106
|
-
...
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
h: wrapHue(foreground.h + hueOffset)
|
|
2109
|
+
...soft,
|
|
2110
|
+
c: Math.max(0, soft.c + chromaOffset),
|
|
2111
|
+
h: wrapHue(soft.h + hueOffset)
|
|
2110
2112
|
};
|
|
2111
2113
|
}
|
|
2112
2114
|
}
|
|
@@ -2386,7 +2388,7 @@ Did you mean addToken("${suggestion}") to change the palette?`
|
|
|
2386
2388
|
const rawShift = this.options.hueShift ?? 0;
|
|
2387
2389
|
const clampedShift = clampHueShift(rawShift, totalVariants);
|
|
2388
2390
|
const hueShiftPerStep = isStrongSide ? clampedShift : -clampedShift;
|
|
2389
|
-
const contrastTarget = resolveContrastRatio(this.options.minContrastRatio) +
|
|
2391
|
+
const contrastTarget = resolveContrastRatio(this.options.minContrastRatio) + CONTRAST_MARGIN;
|
|
2390
2392
|
for (const role of Object.keys(this.lightPalette)) {
|
|
2391
2393
|
for (const [palette, themeType] of [
|
|
2392
2394
|
[this.lightPalette, "light"],
|
package/dist/cli.js
CHANGED
|
@@ -734,12 +734,7 @@ function adaptPalette(palette, type, severity = 1) {
|
|
|
734
734
|
const result = {};
|
|
735
735
|
for (const role of Object.keys(palette)) {
|
|
736
736
|
const scale = palette[role];
|
|
737
|
-
const newScale = {
|
|
738
|
-
DEFAULT: scale.DEFAULT,
|
|
739
|
-
strong: scale.strong,
|
|
740
|
-
weak: scale.weak,
|
|
741
|
-
foreground: scale.foreground
|
|
742
|
-
};
|
|
737
|
+
const newScale = {};
|
|
743
738
|
for (const variant of Object.keys(scale)) {
|
|
744
739
|
newScale[variant] = daltonizeColor(parse(scale[variant]), type, severity);
|
|
745
740
|
}
|
|
@@ -765,12 +760,7 @@ function simulatePalette(palette, type, severity = 1) {
|
|
|
765
760
|
const result = {};
|
|
766
761
|
for (const role of Object.keys(palette)) {
|
|
767
762
|
const scale = palette[role];
|
|
768
|
-
const newScale = {
|
|
769
|
-
DEFAULT: scale.DEFAULT,
|
|
770
|
-
strong: scale.strong,
|
|
771
|
-
weak: scale.weak,
|
|
772
|
-
foreground: scale.foreground
|
|
773
|
-
};
|
|
763
|
+
const newScale = {};
|
|
774
764
|
for (const variant of Object.keys(scale)) {
|
|
775
765
|
newScale[variant] = simulateColor(parse(scale[variant]), type, severity);
|
|
776
766
|
}
|
|
@@ -1392,13 +1382,27 @@ function expandColorToScale(color, themeType, options) {
|
|
|
1392
1382
|
contrastTarget,
|
|
1393
1383
|
skipSurfaceCap
|
|
1394
1384
|
);
|
|
1385
|
+
const foregroundWeakColorOKLCH = computeSoftestForeground(
|
|
1386
|
+
foregroundColorOKLCH,
|
|
1387
|
+
normalizedColorOKLCH,
|
|
1388
|
+
contrastTarget
|
|
1389
|
+
);
|
|
1395
1390
|
return {
|
|
1396
1391
|
DEFAULT: { ...normalizedColorOKLCH },
|
|
1397
1392
|
strong: { ...strongColorOKLCH },
|
|
1398
1393
|
weak: { ...weakColorOKLCH },
|
|
1399
|
-
foreground: { ...foregroundColorOKLCH }
|
|
1394
|
+
foreground: { ...foregroundColorOKLCH },
|
|
1395
|
+
"foreground-weak": { ...foregroundWeakColorOKLCH }
|
|
1400
1396
|
};
|
|
1401
1397
|
}
|
|
1398
|
+
function computeSoftestForeground(foreground, base, contrastTarget) {
|
|
1399
|
+
const boundaryL = findContrastBoundaryLightness(
|
|
1400
|
+
foreground,
|
|
1401
|
+
base,
|
|
1402
|
+
contrastTarget
|
|
1403
|
+
);
|
|
1404
|
+
return { ...foreground, l: boundaryL ?? foreground.l };
|
|
1405
|
+
}
|
|
1402
1406
|
var warnedLegacyLightness = false;
|
|
1403
1407
|
function normalizeBaseLightnessRange(custom) {
|
|
1404
1408
|
let lo = Number(custom[0]);
|
|
@@ -2100,21 +2104,19 @@ var HextimatePaletteBuilder = class _HextimatePaletteBuilder {
|
|
|
2100
2104
|
return;
|
|
2101
2105
|
}
|
|
2102
2106
|
if (edge === "foreground") {
|
|
2103
|
-
const contrastTarget = resolveContrastRatio(this.options.minContrastRatio) +
|
|
2107
|
+
const contrastTarget = resolveContrastRatio(this.options.minContrastRatio) + CONTRAST_MARGIN;
|
|
2104
2108
|
for (const palette of [this.lightPalette, this.darkPalette]) {
|
|
2105
2109
|
for (const role of Object.keys(palette)) {
|
|
2106
2110
|
const scale = palette[role];
|
|
2107
|
-
const
|
|
2108
|
-
|
|
2109
|
-
parse(scale.
|
|
2110
|
-
parse(scale.DEFAULT),
|
|
2111
|
+
const soft = computeSoftestForeground(
|
|
2112
|
+
convert(parse(scale.foreground), "oklch"),
|
|
2113
|
+
convert(parse(scale.DEFAULT), "oklch"),
|
|
2111
2114
|
contrastTarget
|
|
2112
2115
|
);
|
|
2113
2116
|
scale[name] = {
|
|
2114
|
-
...
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
h: wrapHue(foreground.h + hueOffset)
|
|
2117
|
+
...soft,
|
|
2118
|
+
c: Math.max(0, soft.c + chromaOffset),
|
|
2119
|
+
h: wrapHue(soft.h + hueOffset)
|
|
2118
2120
|
};
|
|
2119
2121
|
}
|
|
2120
2122
|
}
|
|
@@ -2394,7 +2396,7 @@ Did you mean addToken("${suggestion}") to change the palette?`
|
|
|
2394
2396
|
const rawShift = this.options.hueShift ?? 0;
|
|
2395
2397
|
const clampedShift = clampHueShift(rawShift, totalVariants);
|
|
2396
2398
|
const hueShiftPerStep = isStrongSide ? clampedShift : -clampedShift;
|
|
2397
|
-
const contrastTarget = resolveContrastRatio(this.options.minContrastRatio) +
|
|
2399
|
+
const contrastTarget = resolveContrastRatio(this.options.minContrastRatio) + CONTRAST_MARGIN;
|
|
2398
2400
|
for (const role of Object.keys(this.lightPalette)) {
|
|
2399
2401
|
for (const [palette, themeType] of [
|
|
2400
2402
|
[this.lightPalette, "light"],
|
|
@@ -2691,7 +2693,7 @@ var shadcn = {
|
|
|
2691
2693
|
foreground: "foreground"
|
|
2692
2694
|
},
|
|
2693
2695
|
excludeRoles: ["caution"],
|
|
2694
|
-
excludeVariants: ["strong", "weak"]
|
|
2696
|
+
excludeVariants: ["strong", "weak", "foreground-weak"]
|
|
2695
2697
|
}
|
|
2696
2698
|
};
|
|
2697
2699
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as HextimatePreset, d as ColorInput, H as HextimatePaletteBuilder } from './HextimatePaletteBuilder-
|
|
1
|
+
import { g as HextimatePreset, d as ColorInput, H as HextimatePaletteBuilder } from './HextimatePaletteBuilder-CPmTYcEY.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Darker accents on light themes, lighter accents on dark themes.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as Color, a as CVDType, O as OKLCH, b as ColorSpace, c as ColorInSpace, d as ColorInput, H as HextimatePaletteBuilder } from './HextimatePaletteBuilder-
|
|
2
|
-
export { D as DerivedToken, F as FlatTokenMap, e as FormatResult, f as HextimateFormatOptions, g as HextimatePreset, h as HextimateResult, i as HextimateStyleOptions, N as NestedTokenMap, T as ThemeAdjustments, j as TokenValue, V as VariantPlacement } from './HextimatePaletteBuilder-
|
|
3
|
-
export { H as HextimateConfig, f as fromConfig, i as presets } from './index-
|
|
1
|
+
import { C as Color, a as CVDType, O as OKLCH, b as ColorSpace, c as ColorInSpace, d as ColorInput, H as HextimatePaletteBuilder } from './HextimatePaletteBuilder-CPmTYcEY.js';
|
|
2
|
+
export { D as DerivedToken, F as FlatTokenMap, e as FormatResult, f as HextimateFormatOptions, g as HextimatePreset, h as HextimateResult, i as HextimateStyleOptions, N as NestedTokenMap, T as ThemeAdjustments, j as TokenValue, V as VariantPlacement } from './HextimatePaletteBuilder-CPmTYcEY.js';
|
|
3
|
+
export { H as HextimateConfig, f as fromConfig, i as presets } from './index-An21acU4.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Daltonize a color for a specific type of color vision deficiency (CVD).
|
package/dist/index.js
CHANGED
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
hextimate,
|
|
8
8
|
parse,
|
|
9
9
|
simulateColor
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FEOOTCAG.js";
|
|
11
11
|
import {
|
|
12
12
|
presets_exports
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-23UBW2KU.js";
|
|
14
14
|
export {
|
|
15
15
|
HextimateError,
|
|
16
16
|
HextimatePaletteBuilder,
|
package/dist/presets.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { H as HextimateConfig, b as bold, m as mui, a as muted, s as shadcn, t as tinted, v as vibrant } from './index-
|
|
2
|
-
export { g as HextimatePreset } from './HextimatePaletteBuilder-
|
|
1
|
+
export { H as HextimateConfig, b as bold, m as mui, a as muted, s as shadcn, t as tinted, v as vibrant } from './index-An21acU4.js';
|
|
2
|
+
export { g as HextimatePreset } from './HextimatePaletteBuilder-CPmTYcEY.js';
|
package/dist/presets.js
CHANGED
package/dist/react.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as HextimateStyleOptions, g as HextimatePreset, H as HextimatePaletteBuilder, h as HextimateResult, F as FlatTokenMap, f as HextimateFormatOptions } from './HextimatePaletteBuilder-
|
|
1
|
+
import { i as HextimateStyleOptions, g as HextimatePreset, H as HextimatePaletteBuilder, h as HextimateResult, F as FlatTokenMap, f as HextimateFormatOptions } from './HextimatePaletteBuilder-CPmTYcEY.js';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { PropsWithChildren, RefObject, CSSProperties, ReactNode } from 'react';
|
|
4
4
|
|
package/dist/react.js
CHANGED
package/fallback.css
CHANGED
|
@@ -3,22 +3,27 @@
|
|
|
3
3
|
--surface-strong: #fcfcfc;
|
|
4
4
|
--surface-weak: #ebebeb;
|
|
5
5
|
--surface-foreground: #030303;
|
|
6
|
+
--surface-foreground-weak: #525252;
|
|
6
7
|
--accent: #454545;
|
|
7
8
|
--accent-strong: #383838;
|
|
8
9
|
--accent-weak: #525252;
|
|
9
10
|
--accent-foreground: #f5f5f5;
|
|
11
|
+
--accent-foreground-weak: #dedede;
|
|
10
12
|
--positive: #454545;
|
|
11
13
|
--positive-strong: #383838;
|
|
12
14
|
--positive-weak: #525252;
|
|
13
15
|
--positive-foreground: #f5f5f5;
|
|
16
|
+
--positive-foreground-weak: #dedede;
|
|
14
17
|
--negative: #454545;
|
|
15
18
|
--negative-strong: #383838;
|
|
16
19
|
--negative-weak: #525252;
|
|
17
20
|
--negative-foreground: #f5f5f5;
|
|
21
|
+
--negative-foreground-weak: #dedede;
|
|
18
22
|
--caution: #454545;
|
|
19
23
|
--caution-strong: #383838;
|
|
20
24
|
--caution-weak: #525252;
|
|
21
25
|
--caution-foreground: #f5f5f5;
|
|
26
|
+
--caution-foreground-weak: #dedede;
|
|
22
27
|
--brand-exact: #737373;
|
|
23
28
|
--brand-exact-foreground: #f5f5f5;
|
|
24
29
|
}
|
|
@@ -28,22 +33,27 @@
|
|
|
28
33
|
--surface-strong: #030303;
|
|
29
34
|
--surface-weak: #2e2e2e;
|
|
30
35
|
--surface-foreground: #f5f5f5;
|
|
36
|
+
--surface-foreground-weak: #a3a3a3;
|
|
31
37
|
--accent: #454545;
|
|
32
38
|
--accent-strong: #525252;
|
|
33
39
|
--accent-weak: #2b2b2b;
|
|
34
40
|
--accent-foreground: #f5f5f5;
|
|
41
|
+
--accent-foreground-weak: #dedede;
|
|
35
42
|
--positive: #454545;
|
|
36
43
|
--positive-strong: #525252;
|
|
37
44
|
--positive-weak: #2b2b2b;
|
|
38
45
|
--positive-foreground: #f5f5f5;
|
|
46
|
+
--positive-foreground-weak: #dedede;
|
|
39
47
|
--negative: #454545;
|
|
40
48
|
--negative-strong: #525252;
|
|
41
49
|
--negative-weak: #2b2b2b;
|
|
42
50
|
--negative-foreground: #f5f5f5;
|
|
51
|
+
--negative-foreground-weak: #dedede;
|
|
43
52
|
--caution: #454545;
|
|
44
53
|
--caution-strong: #525252;
|
|
45
54
|
--caution-weak: #2b2b2b;
|
|
46
55
|
--caution-foreground: #f5f5f5;
|
|
56
|
+
--caution-foreground-weak: #dedede;
|
|
47
57
|
--brand-exact: #737373;
|
|
48
58
|
--brand-exact-foreground: #f5f5f5;
|
|
49
59
|
}
|
|
@@ -53,22 +63,27 @@
|
|
|
53
63
|
--surface-strong: #030303;
|
|
54
64
|
--surface-weak: #2e2e2e;
|
|
55
65
|
--surface-foreground: #f5f5f5;
|
|
66
|
+
--surface-foreground-weak: #a3a3a3;
|
|
56
67
|
--accent: #454545;
|
|
57
68
|
--accent-strong: #525252;
|
|
58
69
|
--accent-weak: #2b2b2b;
|
|
59
70
|
--accent-foreground: #f5f5f5;
|
|
71
|
+
--accent-foreground-weak: #dedede;
|
|
60
72
|
--positive: #454545;
|
|
61
73
|
--positive-strong: #525252;
|
|
62
74
|
--positive-weak: #2b2b2b;
|
|
63
75
|
--positive-foreground: #f5f5f5;
|
|
76
|
+
--positive-foreground-weak: #dedede;
|
|
64
77
|
--negative: #454545;
|
|
65
78
|
--negative-strong: #525252;
|
|
66
79
|
--negative-weak: #2b2b2b;
|
|
67
80
|
--negative-foreground: #f5f5f5;
|
|
81
|
+
--negative-foreground-weak: #dedede;
|
|
68
82
|
--caution: #454545;
|
|
69
83
|
--caution-strong: #525252;
|
|
70
84
|
--caution-weak: #2b2b2b;
|
|
71
85
|
--caution-foreground: #f5f5f5;
|
|
86
|
+
--caution-foreground-weak: #dedede;
|
|
72
87
|
--brand-exact: #737373;
|
|
73
88
|
--brand-exact-foreground: #f5f5f5;
|
|
74
89
|
}
|
package/package.json
CHANGED
package/tailwind-inverted.css
CHANGED
|
@@ -3,20 +3,35 @@
|
|
|
3
3
|
--color-accent-strong-inverted: var(--accent-strong-inverted);
|
|
4
4
|
--color-accent-weak-inverted: var(--accent-weak-inverted);
|
|
5
5
|
--color-accent-foreground-inverted: var(--accent-foreground-inverted);
|
|
6
|
+
--color-accent-foreground-weak-inverted: var(
|
|
7
|
+
--accent-foreground-weak-inverted
|
|
8
|
+
);
|
|
6
9
|
--color-surface-inverted: var(--surface-inverted);
|
|
7
10
|
--color-surface-strong-inverted: var(--surface-strong-inverted);
|
|
8
11
|
--color-surface-weak-inverted: var(--surface-weak-inverted);
|
|
9
12
|
--color-surface-foreground-inverted: var(--surface-foreground-inverted);
|
|
13
|
+
--color-surface-foreground-weak-inverted: var(
|
|
14
|
+
--surface-foreground-weak-inverted
|
|
15
|
+
);
|
|
10
16
|
--color-positive-inverted: var(--positive-inverted);
|
|
11
17
|
--color-positive-strong-inverted: var(--positive-strong-inverted);
|
|
12
18
|
--color-positive-weak-inverted: var(--positive-weak-inverted);
|
|
13
19
|
--color-positive-foreground-inverted: var(--positive-foreground-inverted);
|
|
20
|
+
--color-positive-foreground-weak-inverted: var(
|
|
21
|
+
--positive-foreground-weak-inverted
|
|
22
|
+
);
|
|
14
23
|
--color-negative-inverted: var(--negative-inverted);
|
|
15
24
|
--color-negative-strong-inverted: var(--negative-strong-inverted);
|
|
16
25
|
--color-negative-weak-inverted: var(--negative-weak-inverted);
|
|
17
26
|
--color-negative-foreground-inverted: var(--negative-foreground-inverted);
|
|
27
|
+
--color-negative-foreground-weak-inverted: var(
|
|
28
|
+
--negative-foreground-weak-inverted
|
|
29
|
+
);
|
|
18
30
|
--color-caution-inverted: var(--caution-inverted);
|
|
19
31
|
--color-caution-strong-inverted: var(--caution-strong-inverted);
|
|
20
32
|
--color-caution-weak-inverted: var(--caution-weak-inverted);
|
|
21
33
|
--color-caution-foreground-inverted: var(--caution-foreground-inverted);
|
|
34
|
+
--color-caution-foreground-weak-inverted: var(
|
|
35
|
+
--caution-foreground-weak-inverted
|
|
36
|
+
);
|
|
22
37
|
}
|
package/tailwind.css
CHANGED
|
@@ -3,22 +3,27 @@
|
|
|
3
3
|
--color-accent-strong: var(--accent-strong);
|
|
4
4
|
--color-accent-weak: var(--accent-weak);
|
|
5
5
|
--color-accent-foreground: var(--accent-foreground);
|
|
6
|
+
--color-accent-foreground-weak: var(--accent-foreground-weak);
|
|
6
7
|
--color-surface: var(--surface);
|
|
7
8
|
--color-surface-strong: var(--surface-strong);
|
|
8
9
|
--color-surface-weak: var(--surface-weak);
|
|
9
10
|
--color-surface-foreground: var(--surface-foreground);
|
|
11
|
+
--color-surface-foreground-weak: var(--surface-foreground-weak);
|
|
10
12
|
--color-positive: var(--positive);
|
|
11
13
|
--color-positive-strong: var(--positive-strong);
|
|
12
14
|
--color-positive-weak: var(--positive-weak);
|
|
13
15
|
--color-positive-foreground: var(--positive-foreground);
|
|
16
|
+
--color-positive-foreground-weak: var(--positive-foreground-weak);
|
|
14
17
|
--color-negative: var(--negative);
|
|
15
18
|
--color-negative-strong: var(--negative-strong);
|
|
16
19
|
--color-negative-weak: var(--negative-weak);
|
|
17
20
|
--color-negative-foreground: var(--negative-foreground);
|
|
21
|
+
--color-negative-foreground-weak: var(--negative-foreground-weak);
|
|
18
22
|
--color-caution: var(--caution);
|
|
19
23
|
--color-caution-strong: var(--caution-strong);
|
|
20
24
|
--color-caution-weak: var(--caution-weak);
|
|
21
25
|
--color-caution-foreground: var(--caution-foreground);
|
|
26
|
+
--color-caution-foreground-weak: var(--caution-foreground-weak);
|
|
22
27
|
--color-brand-exact: var(--brand-exact);
|
|
23
28
|
--color-brand-exact-foreground: var(--brand-exact-foreground);
|
|
24
29
|
}
|