@rokkit/core 1.0.0-next.161 → 1.0.0-next.163
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/package.json +2 -2
- package/src/theme.ts +8 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rokkit/core",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.163",
|
|
4
4
|
"description": "Contains core utility functions and classes that can be used in various components.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
"ramda": "^0.32.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@rokkit/icons": "1.0.0-next.
|
|
49
|
+
"@rokkit/icons": "1.0.0-next.163"
|
|
50
50
|
}
|
|
51
51
|
}
|
package/src/theme.ts
CHANGED
|
@@ -133,8 +133,14 @@ export function semanticShortcuts(name) {
|
|
|
133
133
|
*/
|
|
134
134
|
export function contrastShortcuts(name) {
|
|
135
135
|
return [
|
|
136
|
-
[
|
|
137
|
-
|
|
136
|
+
[
|
|
137
|
+
new RegExp(`^text-on-${name}(\\/\\d+)?$`),
|
|
138
|
+
([, end]) => `text-${name}-50${end || ''} dark:text-${name}-50${end || ''}`
|
|
139
|
+
],
|
|
140
|
+
[
|
|
141
|
+
new RegExp(`^text-on-${name}-muted(\\/\\d+)?$`),
|
|
142
|
+
([, end]) => `text-${name}-100${end || ''} dark:text-${name}-200${end || ''}`
|
|
143
|
+
]
|
|
138
144
|
]
|
|
139
145
|
}
|
|
140
146
|
|