Skip to content

Commit 36d47c0

Browse files
matthprostlisalupi
authored andcommitted
feat(Button): emotion removal vanilla extract (#5428)
* feat(Button): emotion removal vanilla extract * fix: unit tests and checks * fix: update prefix to add uv * fix: snapshot update
1 parent 99a45e9 commit 36d47c0

File tree

44 files changed

+25228
-1752
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+25228
-1752
lines changed

.changeset/eight-glasses-warn.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
"@ultraviolet/ui": major
33
---
44

5-
! BREAKING CHANGES !
5+
⚠️ BREAKING CHANGES ⚠️
66
In order to start using the new style, you will need to import new `<ThemeProvider />` and import new CSS generated at build time:
77

88
```tsx
99
import { ThemeProvider } from '@emotion/react'
10-
import { consoleLightTheme, ThemeProvider as ThemeProviderUV } from '@ultraviolet/themes'
10+
import { consoleLightTheme } from '@ultraviolet/themes'
1111

12+
import { ThemeProvider as ThemeProviderUV } from "@ultraviolet/ui" // ThemeProvider that generate the theme applied to components
1213
import "@ultraviolet/ui/styles" // Generated CSS used by components
1314
1415
export const App = (children) => {

.storybook/components/DocsContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { ReactNode } from 'react'
1010
import { cloneElement, isValidElement, useState } from 'react'
1111
import { globalStyles } from './globalStyle'
1212
import '@ultraviolet/fonts/fonts.css'
13-
import { GlobalAlert } from '@ultraviolet/ui'
13+
import { GlobalAlert, ThemeProvider as ThemeProviderUV } from '@ultraviolet/ui'
1414

1515
type ExtraProps = {
1616
/**

.storybook/storybookThemes.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ const generateStorybookTheme = ({
3333

3434
// Toolbar default and active colors
3535
barTextColor: theme.colors.neutral.textWeak,
36+
barSelectedColor: theme.colors.primary.text,
37+
barBg: theme.colors.neutral.backgroundWeak,
38+
3639
buttonBg: theme.colors.neutral.background,
3740
buttonBorder: theme.colors.neutral.border,
3841

examples/vite/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { PlusIcon } from '@ultraviolet/icons'
2-
import { consoleDarkTheme, consoleLightTheme } from '@ultraviolet/themes'
32
import {
43
Alert,
54
Button,
@@ -11,6 +10,7 @@ import {
1110
} from '@ultraviolet/ui'
1211
import { useState } from 'react'
1312
import '@ultraviolet/ui/styles' // Import styles for the UI components
13+
import { consoleDarkTheme, consoleLightTheme } from '@ultraviolet/themes'
1414

1515
export const App = () => {
1616
const [count, setCount] = useState(0)

0 commit comments

Comments
 (0)