Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introduce
'@sanity/ui/theme'
export
- Loading branch information
1 parent
a91ae4f
commit b38f35a
Showing
566 changed files
with
368 additions
and
210 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
.workshop | ||
dist | ||
storybook-static | ||
theme.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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
.env.local | ||
.workshop | ||
dist | ||
etc | ||
node_modules | ||
|
||
/etc | ||
storybook-static | ||
theme.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
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,131 @@ | ||
export * from '../src/core' | ||
|
||
// re-export for backwards compatibility | ||
export { | ||
buildTheme, | ||
COLOR_BASE_TONES, | ||
COLOR_BLEND_MODES, | ||
COLOR_BUTTON_MODES, | ||
COLOR_CONFIG_BASE_KEYS, | ||
COLOR_CONFIG_BASE_TONES, | ||
COLOR_CONFIG_BLEND_KEYS, | ||
COLOR_CONFIG_STATE_KEYS, | ||
COLOR_CONFIG_STATE_TONES, | ||
COLOR_HUES, | ||
COLOR_STATES, | ||
COLOR_STATE_TONES, | ||
COLOR_TINTS, | ||
createColorTheme, | ||
hexToRgb, | ||
hslToRgb, | ||
isColorBlendModeValue, | ||
isColorButtonMode, | ||
isColorConfigBaseKey, | ||
isColorConfigBaseTone, | ||
isColorConfigBlendKey, | ||
isColorConfigStateKey, | ||
isColorConfigStateTone, | ||
isColorHueValue, | ||
isColorOpacityValue, | ||
isColorTintValue, | ||
isColorTokenValue, | ||
isColorValue, | ||
multiply, | ||
parseColor, | ||
parseTokenKey, | ||
parseTokenValue, | ||
rgbToHex, | ||
rgbToHsl, | ||
rgba, | ||
rgbaToRGBA, | ||
screen, | ||
studioTheme, | ||
type BaseColorTokens, | ||
type BaseTheme, | ||
type BoxShadow, | ||
type ButtonColorTokens, | ||
type ButtonModeColorTokens, | ||
type CSSObject, | ||
type ColorBaseTone, | ||
type ColorBlendModeTokenValue, | ||
type ColorBlendModeValue, | ||
type ColorButtonMode, | ||
type ColorConfigBaseKey, | ||
type ColorConfigBaseTone, | ||
type ColorConfigBlendKey, | ||
type ColorConfigOpacityValue, | ||
type ColorConfigStateKey, | ||
type ColorConfigStateTone, | ||
type ColorConfigValue, | ||
type ColorHueValue, | ||
type ColorState, | ||
type ColorStateTone, | ||
type ColorThemeConfig, | ||
type ColorTintValue, | ||
type ColorTokenValue, | ||
type ColorTokens, | ||
type FocusRing, | ||
type HSL, | ||
type PartialThemeColorBuilderOpts, | ||
type RGB, | ||
type RGBA, | ||
type RootTheme, | ||
type StateColorTokens, | ||
type Styles, | ||
type TMP_BaseColorTheme, | ||
type TMP_ButtonColorTheme, | ||
type TMP_ButtonModesColorTheme, | ||
type TMP_ButtonStatesColorTheme, | ||
type TMP_ColorPalette, | ||
type TMP_ColorTheme, | ||
type TMP_StateColorTheme, | ||
type TMP_Theme, | ||
type Theme, | ||
type ThemeAvatar, | ||
type ThemeColor, | ||
type ThemeColorBase, | ||
type ThemeColorBuilderOpts, | ||
type ThemeColorButton, | ||
type ThemeColorButtonModeKey, | ||
type ThemeColorButtonState, | ||
type ThemeColorButtonStates, | ||
type ThemeColorButtonTones, | ||
type ThemeColorCard, | ||
type ThemeColorCardState, | ||
type ThemeColorGenericState, | ||
type ThemeColorInput, | ||
type ThemeColorInputState, | ||
type ThemeColorInputStates, | ||
type ThemeColorMuted, | ||
type ThemeColorMutedTone, | ||
type ThemeColorName, | ||
type ThemeColorScheme, | ||
type ThemeColorSchemeKey, | ||
type ThemeColorSchemes, | ||
type ThemeColorSelectable, | ||
type ThemeColorSelectableState, | ||
type ThemeColorSelectableStates, | ||
type ThemeColorSolid, | ||
type ThemeColorSolidTone, | ||
type ThemeColorSpot, | ||
type ThemeColorSpotKey, | ||
type ThemeColorSyntax, | ||
type ThemeColorToneKey, | ||
type ThemeConfig, | ||
type ThemeFont, | ||
type ThemeFontKey, | ||
type ThemeFontSize, | ||
type ThemeFontWeight, | ||
type ThemeFontWeightKey, | ||
type ThemeFonts, | ||
type ThemeInput, | ||
type ThemeLayer, | ||
type ThemeShadow, | ||
type TokenBaseKeyNode, | ||
type TokenBlendModeValueNode, | ||
type TokenButtonKeyNode, | ||
type TokenColorValueNode, | ||
type TokenHueValueNode, | ||
type TokenKeyNode, | ||
type TokenValueNode, | ||
} from '@sanity/ui/theme' |
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 @@ | ||
export * from '../src/theme' |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/components/dialog/styles.ts → src/core/components/dialog/styles.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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/components/menu/menuButton.tsx → src/core/components/menu/menuButton.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/components/skeleton/textSkeleton.tsx → ...core/components/skeleton/textSkeleton.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/components/toast/toast.test.tsx → src/core/components/toast/toast.test.tsx
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
src/components/toast/toast.tsx → src/core/components/toast/toast.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/components/tree/treeItem.tsx → src/core/components/tree/treeItem.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
...ooks/useMediaIndex/useMediaIndex.test.tsx → ...ooks/useMediaIndex/useMediaIndex.test.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
src/primitives/avatar/avatar.tsx → src/core/primitives/avatar/avatar.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/primitives/avatar/styles.ts → src/core/primitives/avatar/styles.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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/primitives/badge/badge.test.tsx → src/core/primitives/badge/badge.test.tsx
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
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/primitives/badge/styles.ts → src/core/primitives/badge/styles.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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/primitives/button/styles.ts → src/core/primitives/button/styles.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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 2 additions & 12 deletions
14
...primitives/card/__workshop__/selected.tsx → ...primitives/card/__workshop__/selected.tsx
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
Oops, something went wrong.