@ramme-io/ui 4.1.1 → 4.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.
@@ -38,6 +38,11 @@ module.exports = {
38
38
  destructive: {
39
39
  DEFAULT: 'rgb(var(--app-danger-color) / <alpha-value>)',
40
40
  foreground: 'rgb(var(--app-danger-foreground-color) / <alpha-value>)',
41
+ // Severity text on the PAGE ground, not on the fill. `DEFAULT` is the
42
+ // fill and fails as body copy (success on white is 2.8:1); `strong` is
43
+ // the per-theme value that passes. Named `strong` rather than `text`
44
+ // so the utility reads `text-destructive-strong`, not `-text-text`.
45
+ strong: 'rgb(var(--app-danger-text-color) / <alpha-value>)',
41
46
  },
42
47
  accent: {
43
48
  DEFAULT: 'rgb(var(--app-accent-color) / <alpha-value>)',
@@ -56,14 +61,17 @@ module.exports = {
56
61
  info: {
57
62
  DEFAULT: 'rgb(var(--app-info-color) / <alpha-value>)',
58
63
  foreground: 'rgb(var(--app-info-foreground-color) / <alpha-value>)',
64
+ strong: 'rgb(var(--app-info-text-color) / <alpha-value>)',
59
65
  },
60
66
  success: {
61
67
  DEFAULT: 'rgb(var(--app-success-color) / <alpha-value>)',
62
68
  foreground: 'rgb(var(--app-success-foreground-color) / <alpha-value>)',
69
+ strong: 'rgb(var(--app-success-text-color) / <alpha-value>)',
63
70
  },
64
71
  warning: {
65
72
  DEFAULT: 'rgb(var(--app-warning-color) / <alpha-value>)',
66
73
  foreground: 'rgb(var(--app-warning-foreground-color) / <alpha-value>)',
74
+ strong: 'rgb(var(--app-warning-text-color) / <alpha-value>)',
67
75
  },
68
76
  error: {
69
77
  DEFAULT: 'rgb(var(--app-danger-color) / <alpha-value>)',