@lgtm-hq/turbo-themes 0.12.22 → 0.12.24
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/tokens/style-dictionary/themes.json +2 -2
- package/dist/tokens/style-dictionary/tokens.json +2 -2
- package/package.json +5 -4
- package/packages/adapters/tailwind/dist/tsconfig.tsbuildinfo +1 -1
- package/packages/core/dist/index.d.ts +9 -0
- package/packages/core/dist/index.d.ts.map +1 -0
- package/packages/core/dist/index.js +10 -0
- package/packages/core/dist/index.js.map +1 -0
- package/packages/core/dist/themes/bulma.d.ts +31 -0
- package/packages/core/dist/themes/bulma.d.ts.map +1 -0
- package/packages/core/dist/themes/bulma.js +160 -0
- package/packages/core/dist/themes/bulma.js.map +1 -0
- package/packages/core/dist/themes/css/bulma-generator.d.ts +6 -0
- package/packages/core/dist/themes/css/bulma-generator.d.ts.map +1 -0
- package/packages/core/dist/themes/css/bulma-generator.js +42 -0
- package/packages/core/dist/themes/css/bulma-generator.js.map +1 -0
- package/packages/core/dist/themes/css/global-overrides.d.ts +2 -0
- package/packages/core/dist/themes/css/global-overrides.d.ts.map +1 -0
- package/packages/core/dist/themes/css/global-overrides.js +10 -0
- package/packages/core/dist/themes/css/global-overrides.js.map +1 -0
- package/packages/core/dist/themes/css/helpers.d.ts +58 -0
- package/packages/core/dist/themes/css/helpers.d.ts.map +1 -0
- package/packages/core/dist/themes/css/helpers.js +181 -0
- package/packages/core/dist/themes/css/helpers.js.map +1 -0
- package/packages/core/dist/themes/css/index.d.ts +13 -0
- package/packages/core/dist/themes/css/index.d.ts.map +1 -0
- package/packages/core/dist/themes/css/index.js +26 -0
- package/packages/core/dist/themes/css/index.js.map +1 -0
- package/packages/core/dist/themes/css/mappings.d.ts +57 -0
- package/packages/core/dist/themes/css/mappings.d.ts.map +1 -0
- package/packages/core/dist/themes/css/mappings.js +79 -0
- package/packages/core/dist/themes/css/mappings.js.map +1 -0
- package/packages/core/dist/themes/css/overrides/accessibility.d.ts +6 -0
- package/packages/core/dist/themes/css/overrides/accessibility.d.ts.map +1 -0
- package/packages/core/dist/themes/css/overrides/accessibility.js +37 -0
- package/packages/core/dist/themes/css/overrides/accessibility.js.map +1 -0
- package/packages/core/dist/themes/css/overrides/dropdown.d.ts +6 -0
- package/packages/core/dist/themes/css/overrides/dropdown.d.ts.map +1 -0
- package/packages/core/dist/themes/css/overrides/dropdown.js +86 -0
- package/packages/core/dist/themes/css/overrides/dropdown.js.map +1 -0
- package/packages/core/dist/themes/css/overrides/forms.d.ts +6 -0
- package/packages/core/dist/themes/css/overrides/forms.d.ts.map +1 -0
- package/packages/core/dist/themes/css/overrides/forms.js +128 -0
- package/packages/core/dist/themes/css/overrides/forms.js.map +1 -0
- package/packages/core/dist/themes/css/overrides/index.d.ts +14 -0
- package/packages/core/dist/themes/css/overrides/index.d.ts.map +1 -0
- package/packages/core/dist/themes/css/overrides/index.js +30 -0
- package/packages/core/dist/themes/css/overrides/index.js.map +1 -0
- package/packages/core/dist/themes/css/overrides/navbar.d.ts +6 -0
- package/packages/core/dist/themes/css/overrides/navbar.d.ts.map +1 -0
- package/packages/core/dist/themes/css/overrides/navbar.js +63 -0
- package/packages/core/dist/themes/css/overrides/navbar.js.map +1 -0
- package/packages/core/dist/themes/css/overrides/tables.d.ts +6 -0
- package/packages/core/dist/themes/css/overrides/tables.d.ts.map +1 -0
- package/packages/core/dist/themes/css/overrides/tables.js +28 -0
- package/packages/core/dist/themes/css/overrides/tables.js.map +1 -0
- package/packages/core/dist/themes/css/overrides/typography.d.ts +6 -0
- package/packages/core/dist/themes/css/overrides/typography.d.ts.map +1 -0
- package/packages/core/dist/themes/css/overrides/typography.js +139 -0
- package/packages/core/dist/themes/css/overrides/typography.js.map +1 -0
- package/packages/core/dist/themes/css/syntax-generator.d.ts +6 -0
- package/packages/core/dist/themes/css/syntax-generator.d.ts.map +1 -0
- package/packages/core/dist/themes/css/syntax-generator.js +55 -0
- package/packages/core/dist/themes/css/syntax-generator.js.map +1 -0
- package/packages/core/dist/themes/css/types.d.ts +23 -0
- package/packages/core/dist/themes/css/types.d.ts.map +1 -0
- package/packages/core/dist/themes/css/types.js +4 -0
- package/packages/core/dist/themes/css/types.js.map +1 -0
- package/packages/core/dist/themes/css.d.ts +2 -0
- package/packages/core/dist/themes/css.d.ts.map +1 -0
- package/packages/core/dist/themes/css.js +5 -0
- package/packages/core/dist/themes/css.js.map +1 -0
- package/packages/core/dist/themes/registry.d.ts +2 -0
- package/packages/core/dist/themes/registry.d.ts.map +1 -0
- package/packages/core/dist/themes/registry.js +6 -0
- package/packages/core/dist/themes/registry.js.map +1 -0
- package/packages/core/dist/themes/tokens.json +1050 -0
- package/packages/core/dist/themes/types.d.ts +198 -0
- package/packages/core/dist/themes/types.d.ts.map +1 -0
- package/packages/core/dist/themes/types.js +4 -0
- package/packages/core/dist/themes/types.js.map +1 -0
- package/packages/core/dist/tokens/index.d.ts +68 -0
- package/packages/core/dist/tokens/index.d.ts.map +1 -0
- package/packages/core/dist/tokens/index.js +86 -0
- package/packages/core/dist/tokens/index.js.map +1 -0
- package/packages/css/dist/generator.d.ts.map +1 -1
- package/packages/css/dist/generator.js +2 -0
- package/packages/css/dist/generator.js.map +1 -1
- package/packages/theme-selector/dist/errors.d.ts.map +1 -1
- package/packages/theme-selector/dist/errors.js +4 -0
- package/packages/theme-selector/dist/errors.js.map +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://design-tokens.org/schema.json",
|
|
3
3
|
"$description": "Turbo Themes - Design tokens for 9 themes",
|
|
4
|
-
"$version": "0.12.
|
|
5
|
-
"$generated": "2026-01-
|
|
4
|
+
"$version": "0.12.24",
|
|
5
|
+
"$generated": "2026-01-30T15:36:31.180Z",
|
|
6
6
|
"meta": {
|
|
7
7
|
"themeIds": [
|
|
8
8
|
"bulma-dark",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://design-tokens.org/schema.json",
|
|
3
3
|
"$description": "Turbo Themes - Flat tokens for 9 themes",
|
|
4
|
-
"$version": "0.12.
|
|
5
|
-
"$generated": "2026-01-
|
|
4
|
+
"$version": "0.12.24",
|
|
5
|
+
"$generated": "2026-01-30T15:36:31.181Z",
|
|
6
6
|
"meta": {
|
|
7
7
|
"themeIds": [
|
|
8
8
|
"bulma-dark",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lgtm-hq/turbo-themes",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.24",
|
|
4
4
|
"description": "Universal theme packs and an accessible theme selector.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"types": "./dist/index.d.ts",
|
|
64
64
|
"files": [
|
|
65
65
|
"dist/**",
|
|
66
|
+
"packages/core/dist/**",
|
|
66
67
|
"packages/css/dist/**",
|
|
67
68
|
"packages/css/dist/components/**",
|
|
68
69
|
"packages/theme-selector/dist/**",
|
|
@@ -154,7 +155,7 @@
|
|
|
154
155
|
"@playwright/test": "1.58.0",
|
|
155
156
|
"@primer/primitives": "11.3.2",
|
|
156
157
|
"@testing-library/react": "16.3.2",
|
|
157
|
-
"@types/react": "19.2.
|
|
158
|
+
"@types/react": "19.2.10",
|
|
158
159
|
"@types/react-dom": "19.2.3",
|
|
159
160
|
"@vitest/coverage-v8": "4.0.18",
|
|
160
161
|
"ajv": "8.17.1",
|
|
@@ -167,8 +168,8 @@
|
|
|
167
168
|
"husky": "9.1.7",
|
|
168
169
|
"lightningcss": "1.31.1",
|
|
169
170
|
"lint-staged": "16.2.7",
|
|
170
|
-
"react": "19.2.
|
|
171
|
-
"react-dom": "19.2.
|
|
171
|
+
"react": "19.2.4",
|
|
172
|
+
"react-dom": "19.2.4",
|
|
172
173
|
"sass": "1.97.3",
|
|
173
174
|
"style-dictionary": "5.2.0",
|
|
174
175
|
"stylelint": "16.26.1",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../node_modules/.bun/@types+react@19.2.9/node_modules/@types/react/global.d.ts","../../../../node_modules/.bun/csstype@3.2.3/node_modules/csstype/index.d.ts","../../../../node_modules/.bun/@types+react@19.2.9/node_modules/@types/react/index.d.ts","../../../../node_modules/.bun/@types+react@19.2.9/node_modules/@types/react/jsx-runtime.d.ts","../../../core/dist/themes/types.d.ts","../../../core/dist/tokens/index.d.ts","../../../core/dist/themes/registry.d.ts","../../../core/dist/index.d.ts","../colors.ts","../preset.ts","../../../../node_modules/.bun/@types+react-dom@19.2.3+683c4a136ce5ea82/node_modules/@types/react-dom/index.d.ts"],"fileIdsList":[[49],[47,48],[50,54],[50,54,55],[51,52,53],[52],[51]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"170d4db14678c68178ee8a3d5a990d5afb759ecb6ec44dbd885c50f6da6204f6","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac51dd7d31333793807a6abaa5ae168512b6131bd41d9c5b98477fc3b7800f9f","impliedFormat":1},{"version":"cf8db38686dfd74567ea692266fe44fbb32fa0e25fc0888ad6fc40e65873607e","impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},"94ad1ae0c7ad1bd23cf76ed2233960b97adcc8cdffa16311a00f7bcd7bafdc3b","ba42ffb7054311e72981f42d2c0cedf349b8f29d47856b36318a3cbd48b1f35e","3549aeb2205b3a57ce85301689e50146cede675d4fddfe76d5b9b9f59da5987b","fbf3be44e91fb2d5370b7ae0a4e9d6b4c1ff052ed44762f2a223734f5f23b24d",{"version":"bd0d3371e2c4e31540901294bcff98dd21555c9c504e14f78fce97186149c6c8","signature":"4ea2809c4d9cdbcbbd4c1d7ba5a1dcb03d09d76e9625d82fd171adc46634fdba"},{"version":"df61a9ba794c04fe201e5e9cb6fdfdd921548176a2e3697d8dfd4c612a1c91a3","signature":"aa627d79336f57e875caf5a7cf5ec86ca4b6912edb8eca61b42b41ba98f617dc"},{"version":"be1cc4d94ea60cbe567bc29ed479d42587bf1e6cba490f123d329976b0fe4ee5","impliedFormat":1}],"root":[55,56],"options":{"composite":true,"declaration":true,"declarationMap":true,"exactOptionalPropertyTypes":true,"jsx":4,"module":6,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"..","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7},"referencedMap":[[57,1],[49,2],[50,1],[55,3],[56,4],[54,5],[53,6],[52,7]],"latestChangedDtsFile":"./preset.d.ts","version":"5.9.3"}
|
|
1
|
+
{"fileNames":["../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../node_modules/.bun/@types+react@19.2.10/node_modules/@types/react/global.d.ts","../../../../node_modules/.bun/csstype@3.2.3/node_modules/csstype/index.d.ts","../../../../node_modules/.bun/@types+react@19.2.10/node_modules/@types/react/index.d.ts","../../../../node_modules/.bun/@types+react@19.2.10/node_modules/@types/react/jsx-runtime.d.ts","../../../core/dist/themes/types.d.ts","../../../core/dist/tokens/index.d.ts","../../../core/dist/themes/registry.d.ts","../../../core/dist/index.d.ts","../colors.ts","../preset.ts","../../../../node_modules/.bun/@types+react-dom@19.2.3+c3ba17a945f9f28a/node_modules/@types/react-dom/index.d.ts"],"fileIdsList":[[49],[47,48],[50,54],[50,54,55],[51,52,53],[52],[51]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"7e29f41b158de217f94cb9676bf9cbd0cd9b5a46e1985141ed36e075c52bf6ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac51dd7d31333793807a6abaa5ae168512b6131bd41d9c5b98477fc3b7800f9f","impliedFormat":1},{"version":"b9b8a0e45c7b6172a689aee1d7662b7e86994b1648b392efee24b0b557f81126","impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},"94ad1ae0c7ad1bd23cf76ed2233960b97adcc8cdffa16311a00f7bcd7bafdc3b","ba42ffb7054311e72981f42d2c0cedf349b8f29d47856b36318a3cbd48b1f35e","3549aeb2205b3a57ce85301689e50146cede675d4fddfe76d5b9b9f59da5987b","fbf3be44e91fb2d5370b7ae0a4e9d6b4c1ff052ed44762f2a223734f5f23b24d",{"version":"bd0d3371e2c4e31540901294bcff98dd21555c9c504e14f78fce97186149c6c8","signature":"4ea2809c4d9cdbcbbd4c1d7ba5a1dcb03d09d76e9625d82fd171adc46634fdba"},{"version":"df61a9ba794c04fe201e5e9cb6fdfdd921548176a2e3697d8dfd4c612a1c91a3","signature":"aa627d79336f57e875caf5a7cf5ec86ca4b6912edb8eca61b42b41ba98f617dc"},{"version":"be1cc4d94ea60cbe567bc29ed479d42587bf1e6cba490f123d329976b0fe4ee5","impliedFormat":1}],"root":[55,56],"options":{"composite":true,"declaration":true,"declarationMap":true,"exactOptionalPropertyTypes":true,"jsx":4,"module":6,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"..","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7},"referencedMap":[[57,1],[49,2],[50,1],[55,3],[56,4],[54,5],[53,6],[52,7]],"latestChangedDtsFile":"./preset.d.ts","version":"5.9.3"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA;;;;GAIG;AAEH,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
/**
|
|
3
|
+
* Core package exports
|
|
4
|
+
*
|
|
5
|
+
* Re-exports tokens and themes for use by other packages
|
|
6
|
+
*/
|
|
7
|
+
export * from './tokens/index.js';
|
|
8
|
+
export * from './themes/registry.js';
|
|
9
|
+
export * from './themes/types.js';
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B;;;;GAIG;AAEH,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { BulmaConfig } from './types.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Convert hex color to HSL values
|
|
4
|
+
*/
|
|
5
|
+
export declare function hexToHsl(hex: string): {
|
|
6
|
+
h: number;
|
|
7
|
+
s: number;
|
|
8
|
+
l: number;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Theme colors interface for Bulma configuration
|
|
12
|
+
*/
|
|
13
|
+
export interface ThemeColors {
|
|
14
|
+
primary: string;
|
|
15
|
+
link: string;
|
|
16
|
+
info: string;
|
|
17
|
+
success: string;
|
|
18
|
+
warning: string;
|
|
19
|
+
danger: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Generate Bulma Sass configuration from theme config
|
|
23
|
+
*/
|
|
24
|
+
export declare function generateBulmaConfig(config: BulmaConfig): string;
|
|
25
|
+
/**
|
|
26
|
+
* Generate full Bulma @use statement with configuration
|
|
27
|
+
* @param colors - Theme colors in hex format
|
|
28
|
+
* @param config - Optional Bulma configuration (breakpoints, spacing, etc.)
|
|
29
|
+
*/
|
|
30
|
+
export declare function generateBulmaUse(colors: ThemeColors, config?: BulmaConfig): string;
|
|
31
|
+
//# sourceMappingURL=bulma.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulma.d.ts","sourceRoot":"","sources":["../../src/themes/bulma.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C;;GAEG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAuCzE;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CA4D/D;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,MAAM,CAqClF"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Bulma configuration utilities
|
|
3
|
+
/**
|
|
4
|
+
* Convert hex color to HSL values
|
|
5
|
+
*/
|
|
6
|
+
export function hexToHsl(hex) {
|
|
7
|
+
// Remove # if present
|
|
8
|
+
const cleanHex = hex.replace('#', '');
|
|
9
|
+
// Parse hex to RGB
|
|
10
|
+
const r = Number.parseInt(cleanHex.slice(0, 2), 16) / 255;
|
|
11
|
+
const g = Number.parseInt(cleanHex.slice(2, 4), 16) / 255;
|
|
12
|
+
const b = Number.parseInt(cleanHex.slice(4, 6), 16) / 255;
|
|
13
|
+
const max = Math.max(r, g, b);
|
|
14
|
+
const min = Math.min(r, g, b);
|
|
15
|
+
let h;
|
|
16
|
+
const l = (max + min) / 2;
|
|
17
|
+
let s;
|
|
18
|
+
if (max === min) {
|
|
19
|
+
h = s = 0; // achromatic
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
const d = max - min;
|
|
23
|
+
s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
|
|
24
|
+
switch (max) {
|
|
25
|
+
case r:
|
|
26
|
+
h = (g - b) / d + (g < b ? 6 : 0);
|
|
27
|
+
break;
|
|
28
|
+
case g:
|
|
29
|
+
h = (b - r) / d + 2;
|
|
30
|
+
break;
|
|
31
|
+
default:
|
|
32
|
+
h = (r - g) / d + 4;
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
h /= 6;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
h: Math.round(h * 360),
|
|
39
|
+
s: Math.round(s * 100),
|
|
40
|
+
l: Math.round(l * 100),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Generate Bulma Sass configuration from theme config
|
|
45
|
+
*/
|
|
46
|
+
export function generateBulmaConfig(config) {
|
|
47
|
+
const lines = [];
|
|
48
|
+
// Breakpoints
|
|
49
|
+
if (config.breakpoints) {
|
|
50
|
+
lines.push('// Custom breakpoints');
|
|
51
|
+
const breakpoints = config.breakpoints;
|
|
52
|
+
if (breakpoints.mobile)
|
|
53
|
+
lines.push(`$mobile: ${breakpoints.mobile};`);
|
|
54
|
+
if (breakpoints.tablet)
|
|
55
|
+
lines.push(`$tablet: ${breakpoints.tablet};`);
|
|
56
|
+
if (breakpoints.desktop)
|
|
57
|
+
lines.push(`$desktop: ${breakpoints.desktop};`);
|
|
58
|
+
if (breakpoints.widescreen)
|
|
59
|
+
lines.push(`$widescreen: ${breakpoints.widescreen};`);
|
|
60
|
+
if (breakpoints.fullhd)
|
|
61
|
+
lines.push(`$fullhd: ${breakpoints.fullhd};`);
|
|
62
|
+
lines.push('');
|
|
63
|
+
}
|
|
64
|
+
// Spacing
|
|
65
|
+
if (config.spacing) {
|
|
66
|
+
lines.push('// Custom spacing scale');
|
|
67
|
+
const spacing = config.spacing;
|
|
68
|
+
if (spacing.small)
|
|
69
|
+
lines.push(`$spacing-small: ${spacing.small};`);
|
|
70
|
+
if (spacing.medium)
|
|
71
|
+
lines.push(`$spacing-medium: ${spacing.medium};`);
|
|
72
|
+
if (spacing.large)
|
|
73
|
+
lines.push(`$spacing-large: ${spacing.large};`);
|
|
74
|
+
lines.push('');
|
|
75
|
+
}
|
|
76
|
+
// Sizes
|
|
77
|
+
if (config.sizes) {
|
|
78
|
+
lines.push('// Custom typography sizes');
|
|
79
|
+
const sizes = config.sizes;
|
|
80
|
+
if (sizes.small)
|
|
81
|
+
lines.push(`$size-small: ${sizes.small};`);
|
|
82
|
+
if (sizes.normal)
|
|
83
|
+
lines.push(`$size-normal: ${sizes.normal};`);
|
|
84
|
+
if (sizes.medium)
|
|
85
|
+
lines.push(`$size-medium: ${sizes.medium};`);
|
|
86
|
+
if (sizes.large)
|
|
87
|
+
lines.push(`$size-large: ${sizes.large};`);
|
|
88
|
+
lines.push('');
|
|
89
|
+
}
|
|
90
|
+
// Radius
|
|
91
|
+
if (config.radius) {
|
|
92
|
+
lines.push('// Custom border radius');
|
|
93
|
+
const radius = config.radius;
|
|
94
|
+
if (radius.small)
|
|
95
|
+
lines.push(`$radius-small: ${radius.small};`);
|
|
96
|
+
if (radius.normal)
|
|
97
|
+
lines.push(`$radius: ${radius.normal};`);
|
|
98
|
+
if (radius.medium)
|
|
99
|
+
lines.push(`$radius-medium: ${radius.medium};`);
|
|
100
|
+
if (radius.large)
|
|
101
|
+
lines.push(`$radius-large: ${radius.large};`);
|
|
102
|
+
if (radius.rounded)
|
|
103
|
+
lines.push(`$radius-rounded: ${radius.rounded};`);
|
|
104
|
+
lines.push('');
|
|
105
|
+
}
|
|
106
|
+
// Shadows
|
|
107
|
+
if (config.shadows) {
|
|
108
|
+
lines.push('// Custom shadows');
|
|
109
|
+
const shadows = config.shadows;
|
|
110
|
+
if (shadows.small)
|
|
111
|
+
lines.push(`$shadow-small: ${shadows.small};`);
|
|
112
|
+
if (shadows.normal)
|
|
113
|
+
lines.push(`$shadow-normal: ${shadows.normal};`);
|
|
114
|
+
if (shadows.medium)
|
|
115
|
+
lines.push(`$shadow-medium: ${shadows.medium};`);
|
|
116
|
+
if (shadows.large)
|
|
117
|
+
lines.push(`$shadow-large: ${shadows.large};`);
|
|
118
|
+
lines.push('');
|
|
119
|
+
}
|
|
120
|
+
return lines.join('\n');
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Generate full Bulma @use statement with configuration
|
|
124
|
+
* @param colors - Theme colors in hex format
|
|
125
|
+
* @param config - Optional Bulma configuration (breakpoints, spacing, etc.)
|
|
126
|
+
*/
|
|
127
|
+
export function generateBulmaUse(colors, config) {
|
|
128
|
+
// Convert hex colors to HSL with error handling
|
|
129
|
+
let primaryHsl, linkHsl, infoHsl, successHsl, warningHsl, dangerHsl;
|
|
130
|
+
try {
|
|
131
|
+
primaryHsl = hexToHsl(colors.primary);
|
|
132
|
+
linkHsl = hexToHsl(colors.link);
|
|
133
|
+
infoHsl = hexToHsl(colors.info);
|
|
134
|
+
successHsl = hexToHsl(colors.success);
|
|
135
|
+
warningHsl = hexToHsl(colors.warning);
|
|
136
|
+
dangerHsl = hexToHsl(colors.danger);
|
|
137
|
+
}
|
|
138
|
+
catch (error) {
|
|
139
|
+
throw new Error(`Invalid theme colors: ${error instanceof Error ? error.message : String(error)}`);
|
|
140
|
+
}
|
|
141
|
+
// Generate Bulma config (breakpoints, spacing, etc.)
|
|
142
|
+
const configStr = config ? generateBulmaConfig(config) : '';
|
|
143
|
+
// Build the @use statement with color configuration
|
|
144
|
+
// Use 'bulma/sass' to ensure variables are properly forwarded and configurable
|
|
145
|
+
const colorConfig = `@use 'bulma/sass' with (
|
|
146
|
+
$primary: hsl(${primaryHsl.h}, ${primaryHsl.s}%, ${primaryHsl.l}%),
|
|
147
|
+
$link: hsl(${linkHsl.h}, ${linkHsl.s}%, ${linkHsl.l}%),
|
|
148
|
+
$info: hsl(${infoHsl.h}, ${infoHsl.s}%, ${infoHsl.l}%),
|
|
149
|
+
$success: hsl(${successHsl.h}, ${successHsl.s}%, ${successHsl.l}%),
|
|
150
|
+
$warning: hsl(${warningHsl.h}, ${warningHsl.s}%, ${warningHsl.l}%),
|
|
151
|
+
$danger: hsl(${dangerHsl.h}, ${dangerHsl.s}%, ${dangerHsl.l}%)
|
|
152
|
+
);`;
|
|
153
|
+
// If no additional config, return just the color config
|
|
154
|
+
if (!configStr.trim()) {
|
|
155
|
+
return colorConfig;
|
|
156
|
+
}
|
|
157
|
+
// Combine config and color @use statement with newline separator
|
|
158
|
+
return `${configStr}\n${colorConfig}`;
|
|
159
|
+
}
|
|
160
|
+
//# sourceMappingURL=bulma.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulma.js","sourceRoot":"","sources":["../../src/themes/bulma.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,gCAAgC;AAIhC;;GAEG;AACH,MAAM,UAAU,QAAQ,CAAC,GAAW;IAClC,sBAAsB;IACtB,MAAM,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC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AC,MAAM,UAAU,CAAC,CAAC;eAClD,OAAO,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,MAAM,OAAO,CAAC,CAAC;eACtC,OAAO,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,MAAM,OAAO,CAAC,CAAC;kBACnC,UAAU,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,MAAM,UAAU,CAAC,CAAC;kBAC/C,UAAU,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,MAAM,UAAU,CAAC,CAAC;iBAChD,SAAS,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,MAAM,SAAS,CAAC,CAAC;GAC1D,CAAC;IAEF,wDAAwD;IACxD,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC;QACtB,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,iEAAiE;IACjE,OAAO,GAAG,SAAS,KAAK,WAAW,EAAE,CAAC;AACxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulma-generator.d.ts","sourceRoot":"","sources":["../../../src/themes/css/bulma-generator.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAqB/C;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CA+CrE"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Bulma-specific CSS variable generation
|
|
3
|
+
import { escapeCssId, generateVariables, generateHSLComponents, generateHSLColors, generateComponentVariables, } from './helpers.js';
|
|
4
|
+
import { BULMA_SCHEME_MAPPINGS, PRIMARY_HSL_MAPPING, STATE_HSL_MAPPINGS, TEXT_MAPPINGS, HEADING_MAPPINGS, CONTENT_MAPPINGS, TABLE_MAPPINGS, SYNTAX_MAPPINGS, SURFACE_MAPPINGS, COMPONENT_MAPPINGS, } from './mappings.js';
|
|
5
|
+
/**
|
|
6
|
+
* Generates theme CSS variables for a flavor using data-driven mappings.
|
|
7
|
+
*/
|
|
8
|
+
export function generateThemeCSSVariables(flavor) {
|
|
9
|
+
const { tokens } = flavor;
|
|
10
|
+
const escapedId = escapeCssId(flavor.id);
|
|
11
|
+
const lines = [];
|
|
12
|
+
// Bulma scheme variables
|
|
13
|
+
lines.push(...generateVariables(tokens, BULMA_SCHEME_MAPPINGS));
|
|
14
|
+
// Primary color HSL components
|
|
15
|
+
lines.push(...generateHSLComponents(tokens, PRIMARY_HSL_MAPPING));
|
|
16
|
+
// State colors as HSL
|
|
17
|
+
lines.push(...generateHSLColors(tokens, STATE_HSL_MAPPINGS));
|
|
18
|
+
// Typography (with special formatting for font stacks)
|
|
19
|
+
lines.push(` --theme-font-sans:\n ${tokens.typography.fonts.sans};`);
|
|
20
|
+
lines.push(` --theme-font-mono:\n ${tokens.typography.fonts.mono};`);
|
|
21
|
+
// Text variables
|
|
22
|
+
lines.push(...generateVariables(tokens, TEXT_MAPPINGS));
|
|
23
|
+
// Heading variables
|
|
24
|
+
lines.push(...generateVariables(tokens, HEADING_MAPPINGS));
|
|
25
|
+
// Content element variables
|
|
26
|
+
lines.push(...generateVariables(tokens, CONTENT_MAPPINGS));
|
|
27
|
+
// Table variables
|
|
28
|
+
lines.push(...generateVariables(tokens, TABLE_MAPPINGS));
|
|
29
|
+
// Syntax highlighting variables
|
|
30
|
+
lines.push(...generateVariables(tokens, SYNTAX_MAPPINGS));
|
|
31
|
+
// Surface/background variables
|
|
32
|
+
lines.push(...generateVariables(tokens, SURFACE_MAPPINGS));
|
|
33
|
+
// Component tokens (optional)
|
|
34
|
+
const componentLines = generateComponentVariables(tokens, COMPONENT_MAPPINGS);
|
|
35
|
+
if (componentLines.length > 0) {
|
|
36
|
+
lines.push(...componentLines);
|
|
37
|
+
}
|
|
38
|
+
// Color scheme
|
|
39
|
+
lines.push(` color-scheme: ${flavor.appearance};`);
|
|
40
|
+
return `html[data-flavor='${escapedId}'] {\n${lines.join('\n')}\n}`;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=bulma-generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulma-generator.js","sourceRoot":"","sources":["../../../src/themes/css/bulma-generator.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,yCAAyC;AAGzC,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,0BAA0B,GAC3B,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,eAAe,CAAC;AAEvB;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,MAAmB;IAC3D,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAC1B,MAAM,SAAS,GAAG,WAAW,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAEzC,MAAM,KAAK,GAAa,EAAE,CAAC;IAE3B,yBAAyB;IACzB,KAAK,CAAC,IAAI,CAAC,GAAG,iBAAiB,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC,CAAC;IAEhE,+BAA+B;IAC/B,KAAK,CAAC,IAAI,CAAC,GAAG,qBAAqB,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC;IAElE,sBAAsB;IACtB,KAAK,CAAC,IAAI,CAAC,GAAG,iBAAiB,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC;IAE7D,uDAAuD;IACvD,KAAK,CAAC,IAAI,CAAC,6BAA6B,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC;IACzE,KAAK,CAAC,IAAI,CAAC,6BAA6B,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC;IAEzE,iBAAiB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AAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Global CSS override generation - re-exports from modular structure
|
|
3
|
+
//
|
|
4
|
+
// This file maintains backward compatibility by re-exporting the composed
|
|
5
|
+
// cssGlobalOverrides function from the new modular overrides/ directory.
|
|
6
|
+
//
|
|
7
|
+
// For new code, prefer importing from './overrides/index.js' directly,
|
|
8
|
+
// which also exports individual override functions for selective use.
|
|
9
|
+
export { cssGlobalOverrides, cssTypographyOverrides, cssFormOverrides, cssDropdownOverrides, cssTableOverrides, cssNavbarOverrides, cssAccessibilityOverrides, } from './overrides/index.js';
|
|
10
|
+
//# sourceMappingURL=global-overrides.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global-overrides.js","sourceRoot":"","sources":["../../../src/themes/css/global-overrides.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,qEAAqE;AACrE,EAAE;AACF,0EAA0E;AAC1E,yEAAyE;AACzE,EAAE;AACF,uEAAuE;AACvE,sEAAsE;AAEtE,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { ThemeTokens } from '../types.js';
|
|
2
|
+
import type { CSSVariableMapping, HSLVariableMapping, HSLColorMapping, ComponentTokenMapping } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Unified token path resolver options.
|
|
5
|
+
*/
|
|
6
|
+
interface ResolveTokenOptions {
|
|
7
|
+
/** Optional path prefix (e.g., 'components' for component tokens) */
|
|
8
|
+
prefix?: string;
|
|
9
|
+
/** Fallback path to try if primary path fails */
|
|
10
|
+
fallbackPath?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Unified token path resolver.
|
|
14
|
+
* Gets a value from tokens using a dot-separated path with optional prefix and fallback.
|
|
15
|
+
*/
|
|
16
|
+
export declare function resolveTokenPath(tokens: ThemeTokens, path: string, options?: ResolveTokenOptions): string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Gets a nested value from an object using a dot-separated path.
|
|
19
|
+
* Convenience wrapper around resolveTokenPath.
|
|
20
|
+
*/
|
|
21
|
+
export declare function getTokenValue(tokens: ThemeTokens, path: string): string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Gets a component token value with fallback.
|
|
24
|
+
* Convenience wrapper around resolveTokenPath for component tokens.
|
|
25
|
+
*/
|
|
26
|
+
export declare function getComponentTokenValue(tokens: ThemeTokens, componentPath: string, fallbackPath: string): string;
|
|
27
|
+
/**
|
|
28
|
+
* Converts a hex color to an HSL string.
|
|
29
|
+
*/
|
|
30
|
+
export declare function hexToHslString(hex: string): string;
|
|
31
|
+
/**
|
|
32
|
+
* Escapes a string for use in CSS selectors.
|
|
33
|
+
* Fallback implements CSS.escape algorithm per CSSOM spec when native is unavailable.
|
|
34
|
+
*/
|
|
35
|
+
export declare function escapeCssId(id: string): string;
|
|
36
|
+
/**
|
|
37
|
+
* Validates and sanitizes a CSS color value.
|
|
38
|
+
* Returns the value if valid, or a transparent fallback if invalid.
|
|
39
|
+
*/
|
|
40
|
+
export declare function sanitizeCssColor(value: string | undefined): string;
|
|
41
|
+
/**
|
|
42
|
+
* Generates CSS variable declarations from a mapping array.
|
|
43
|
+
*/
|
|
44
|
+
export declare function generateVariables(tokens: ThemeTokens, mappings: CSSVariableMapping[]): string[];
|
|
45
|
+
/**
|
|
46
|
+
* Generates HSL component variables (h, s%, l%).
|
|
47
|
+
*/
|
|
48
|
+
export declare function generateHSLComponents(tokens: ThemeTokens, mapping: HSLVariableMapping): string[];
|
|
49
|
+
/**
|
|
50
|
+
* Generates HSL color variables.
|
|
51
|
+
*/
|
|
52
|
+
export declare function generateHSLColors(tokens: ThemeTokens, mappings: HSLColorMapping[]): string[];
|
|
53
|
+
/**
|
|
54
|
+
* Generates component token variables with fallbacks.
|
|
55
|
+
*/
|
|
56
|
+
export declare function generateComponentVariables(tokens: ThemeTokens, mappings: ComponentTokenMapping[]): string[];
|
|
57
|
+
export {};
|
|
58
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/themes/css/helpers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACtB,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,UAAU,mBAAmB;IAC3B,qEAAqE;IACrE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iDAAiD;IACjD,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAsBD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,mBAAmB,GAC5B,MAAM,GAAG,SAAS,CAqBpB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEnF;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,WAAW,EACnB,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,MAAM,GACnB,MAAM,CAQR;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGlD;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAU9C;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CA4BlE;AAED;;GAEG;AACH,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