@code-sherpas/pharos-tokens 0.1.2 → 0.2.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/dist/index.js +2 -0
- package/dist/styles.css +2 -0
- package/dist/tokens.d.ts +4 -0
- package/dist/tokens.js +2 -0
- package/dist/tokens.json +2 -0
- package/package.json +1 -1
- package/src/color.tokens.json +10 -0
package/dist/index.js
CHANGED
package/dist/styles.css
CHANGED
|
@@ -29,6 +29,8 @@
|
|
|
29
29
|
--pharos-color-semantic-success-fg: oklch(52% 0.17 152); /** Success foreground. Darkened from Alexandria #05b661 (L=68%, failed WCAG) to pass AA 4.5:1 vs white background and AA 3:1 for white text on filled surfaces. */
|
|
30
30
|
--pharos-color-semantic-success-bg: oklch(52% 0.17 152 / 0.063); /** Success background, subtle tint of success.fg. */
|
|
31
31
|
--pharos-color-semantic-error-fg: oklch(61.28% 0.2305 27.48); /** Error foreground. Replaces Alexandria #ef2828 / true-red-opaque. Decision D2: single red (laser-red merged). */
|
|
32
|
+
--pharos-color-semantic-error-fg-hover: oklch(54% 0.22 27.48); /** Darker shade of error.fg for hover states on filled destructive surfaces. Passes WCAG AA 4.5:1 against error.on (white). */
|
|
33
|
+
--pharos-color-semantic-error-fg-active: oklch(46% 0.195 27.48); /** Darker still — pressed/active state for filled destructive surfaces. Passes WCAG AAA 7:1 against error.on (white). */
|
|
32
34
|
--pharos-color-semantic-error-bg: oklch(61.28% 0.2305 27.48 / 0.063); /** Error background, subtle. Replaces Alexandria #ef282810. */
|
|
33
35
|
--pharos-color-semantic-warning-fg: oklch(77.77% 0.1588 90.66); /** Warning foreground. Replaces Alexandria #ddb101 / warning.fore. */
|
|
34
36
|
--pharos-color-semantic-warning-bg: oklch(77.77% 0.1588 90.66 / 0.063); /** Warning background, subtle. Replaces Alexandria #ddb10110 / warning.back. */
|
package/dist/tokens.d.ts
CHANGED
|
@@ -56,6 +56,10 @@ export const PharosColorSemanticSuccessBg: string;
|
|
|
56
56
|
export const PharosColorSemanticSuccessOn: string;
|
|
57
57
|
/** Error foreground. Replaces Alexandria #ef2828 / true-red-opaque. Decision D2: single red (laser-red merged). */
|
|
58
58
|
export const PharosColorSemanticErrorFg: string;
|
|
59
|
+
/** Darker shade of error.fg for hover states on filled destructive surfaces. Passes WCAG AA 4.5:1 against error.on (white). */
|
|
60
|
+
export const PharosColorSemanticErrorFgHover: string;
|
|
61
|
+
/** Darker still — pressed/active state for filled destructive surfaces. Passes WCAG AAA 7:1 against error.on (white). */
|
|
62
|
+
export const PharosColorSemanticErrorFgActive: string;
|
|
59
63
|
/** Error background, subtle. Replaces Alexandria #ef282810. */
|
|
60
64
|
export const PharosColorSemanticErrorBg: string;
|
|
61
65
|
/** Readable on error.fg filled surfaces (WCAG AA). */
|
package/dist/tokens.js
CHANGED
|
@@ -29,6 +29,8 @@ export const PharosColorSemanticSuccessFg = "oklch(52% 0.17 152)"; // Success fo
|
|
|
29
29
|
export const PharosColorSemanticSuccessBg = "oklch(52% 0.17 152 / 0.063)"; // Success background, subtle tint of success.fg.
|
|
30
30
|
export const PharosColorSemanticSuccessOn = "oklch(100% 0 0)"; // Readable on success.fg filled surfaces (WCAG AA).
|
|
31
31
|
export const PharosColorSemanticErrorFg = "oklch(61.28% 0.2305 27.48)"; // Error foreground. Replaces Alexandria #ef2828 / true-red-opaque. Decision D2: single red (laser-red merged).
|
|
32
|
+
export const PharosColorSemanticErrorFgHover = "oklch(54% 0.22 27.48)"; // Darker shade of error.fg for hover states on filled destructive surfaces. Passes WCAG AA 4.5:1 against error.on (white).
|
|
33
|
+
export const PharosColorSemanticErrorFgActive = "oklch(46% 0.195 27.48)"; // Darker still — pressed/active state for filled destructive surfaces. Passes WCAG AAA 7:1 against error.on (white).
|
|
32
34
|
export const PharosColorSemanticErrorBg = "oklch(61.28% 0.2305 27.48 / 0.063)"; // Error background, subtle. Replaces Alexandria #ef282810.
|
|
33
35
|
export const PharosColorSemanticErrorOn = "oklch(100% 0 0)"; // Readable on error.fg filled surfaces (WCAG AA).
|
|
34
36
|
export const PharosColorSemanticWarningFg = "oklch(77.77% 0.1588 90.66)"; // Warning foreground. Replaces Alexandria #ddb101 / warning.fore.
|
package/dist/tokens.json
CHANGED
package/package.json
CHANGED
package/src/color.tokens.json
CHANGED
|
@@ -145,6 +145,16 @@
|
|
|
145
145
|
"$type": "color",
|
|
146
146
|
"$description": "Error foreground. Replaces Alexandria #ef2828 / true-red-opaque. Decision D2: single red (laser-red merged)."
|
|
147
147
|
},
|
|
148
|
+
"fg-hover": {
|
|
149
|
+
"$value": "oklch(54% 0.22 27.48)",
|
|
150
|
+
"$type": "color",
|
|
151
|
+
"$description": "Darker shade of error.fg for hover states on filled destructive surfaces. Passes WCAG AA 4.5:1 against error.on (white)."
|
|
152
|
+
},
|
|
153
|
+
"fg-active": {
|
|
154
|
+
"$value": "oklch(46% 0.195 27.48)",
|
|
155
|
+
"$type": "color",
|
|
156
|
+
"$description": "Darker still — pressed/active state for filled destructive surfaces. Passes WCAG AAA 7:1 against error.on (white)."
|
|
157
|
+
},
|
|
148
158
|
"bg": {
|
|
149
159
|
"$value": "oklch(61.28% 0.2305 27.48 / 0.063)",
|
|
150
160
|
"$type": "color",
|