-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: extract @solid-design-system/theming package (#708)
- Loading branch information
Christoph Saile
authored
Jan 30, 2024
1 parent
cad20cb
commit ce7f177
Showing
15 changed files
with
426 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/components/.storybook/addons/theme-generator/withGlobals.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.DS_Store | ||
.cache | ||
dist | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Theming | ||
|
||
The Solid Design System Theming package provides a color calculation service. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"name": "@solid-design-system/theming", | ||
"version": "0.0.1", | ||
"description": "This package provides a color calculation service for the Solid Design System.", | ||
"main": "./src/index.js", | ||
"scripts": { | ||
"build.types": "tsc --project tsconfig.json", | ||
"release": "semantic-release --tagFormat 'theming/${version}' -e semantic-release-monorepo", | ||
"release.dry": "semantic-release -d --tagFormat 'theming/${version}' -e semantic-release-monorepo" | ||
}, | ||
"type": "module", | ||
"exports": { | ||
".": "./src/index.js" | ||
}, | ||
"types": "./types/index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/solid-design-system/solid.git", | ||
"directory": "packages/theming" | ||
}, | ||
"keywords": [], | ||
"homepage": "https://solid-design-system.fe.union-investment.de/x.x.x/storybook/", | ||
"files": [ | ||
"src", | ||
"types" | ||
], | ||
"author": "Union Investment", | ||
"license": "MIT", | ||
"readme": "README.md", | ||
"devDependencies": { | ||
"@semantic-release/changelog": "^6.0.3", | ||
"@semantic-release/git": "^10.0.1", | ||
"semantic-release": "^19.0.5", | ||
"semantic-release-monorepo": "^7.0.5", | ||
"typescript": "5.3.3" | ||
}, | ||
"release": { | ||
"branches": [ | ||
"main" | ||
], | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
[ | ||
"@semantic-release/changelog", | ||
{ | ||
"changelogFile": "CHANGELOG.md" | ||
} | ||
], | ||
[ | ||
"@semantic-release/npm", | ||
{ | ||
"npmPublish": true | ||
} | ||
], | ||
[ | ||
"@semantic-release/git", | ||
{ | ||
"message": "chore(release/theming): ${nextRelease.version} [skip actions]\n\n${nextRelease.notes}", | ||
"assets": [ | ||
"CHANGELOG.md", | ||
"package.json" | ||
] | ||
} | ||
], | ||
[ | ||
"@semantic-release/github", | ||
{ | ||
"successComment": false | ||
} | ||
] | ||
] | ||
}, | ||
"dependencies": { | ||
"chroma-js": "^2.4.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { calculateColorsAsCss } from './color-calculation'; | ||
|
||
export { calculateColorsAsCss }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"compilerOptions": { | ||
"declaration": true, | ||
"allowJs": true, | ||
"emitDeclarationOnly": true, | ||
"outDir": "./types", | ||
"baseUrl": ".", | ||
"paths": { | ||
"*": ["./src/*"] | ||
} | ||
}, | ||
"include": [ | ||
"./src/**/*.js", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export function calculateColorsForType( | ||
type: any, | ||
theme: any, | ||
colors: any, | ||
useNormalizedLuminanceMap: any, | ||
useForcedShades: any | ||
): string; | ||
export function calculateColorsAsCss( | ||
colors: any, | ||
theme: any, | ||
useNormalizedLuminanceMap: boolean, | ||
useForcedShades: boolean | ||
): string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { calculateColorsAsCss }; | ||
import { calculateColorsAsCss } from './color-calculation'; |
Oops, something went wrong.