-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1fc97cb
commit 3533297
Showing
34 changed files
with
759 additions
and
992 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
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,5 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/image-types/global" /> | ||
|
||
// NOTE: This file should not be edited | ||
// see https://nextjs.org/docs/basic-features/typescript for more information. |
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,19 @@ | ||
{ | ||
"name": "@sealos/ui", | ||
"version": "1.0.0", | ||
"description": "", | ||
"exports": { | ||
".": { | ||
"import": "./src/index.ts", | ||
"types": "./src/index.ts" | ||
} | ||
}, | ||
"main": "./src/index.ts", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"dev": "next dev" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC" | ||
} |
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,84 @@ | ||
export const colors = { | ||
primary: { | ||
100: '#E6F6F6', | ||
200: '#CCEEED', | ||
300: '#99DDDB', | ||
400: '#66CBCA', | ||
500: '#33BABB', | ||
600: '#00A9A6', | ||
700: '#008F8D', | ||
800: '#006B6A', | ||
900: '#004846', | ||
1000: '#002423' | ||
}, | ||
// 避免和 white 冲突, black也是同理 | ||
white_: { | ||
100: '#FEFEFE', | ||
200: '#FDFDFE', | ||
300: '#FBFBFC', | ||
400: '#F8FAFB', | ||
500: '#F6F8F9', | ||
600: '#F4F6F8', | ||
700: '#C3C5C6', | ||
800: '#929495', | ||
900: '#626263', | ||
1000: '#313132' | ||
}, | ||
grayModern: { | ||
100: '#EFF0F1', | ||
200: '#DEE0E2', | ||
300: '#BDC1C5', | ||
400: '#9CA2A8', | ||
500: '#7B838B', | ||
600: '#5A646E', | ||
700: '#485058', | ||
800: '#363C42', | ||
900: '#24282C', | ||
1000: '#121416' | ||
}, | ||
grayIron: { | ||
100: '#F3F3F3', | ||
200: '#E6E6E7', | ||
300: '#CDCDD0', | ||
400: '#B4B4B8', | ||
500: '#9B9BA1', | ||
600: '#828289', | ||
700: '#68686E', | ||
800: '#4E4E52', | ||
900: '#343437', | ||
1000: '#1A1A1B' | ||
}, | ||
error: { | ||
100: '#FFEBED', | ||
200: '#FFD6DB', | ||
300: '#FFADB7', | ||
400: '#FF8492', | ||
500: '#FF5B6E', | ||
600: '#FF324A' | ||
}, | ||
warn: { | ||
100: '#FFF2EC', | ||
400: '#FDB08A', | ||
600: '#FB7C3C', | ||
700: '#C96330' | ||
}, | ||
rose: { | ||
100: '#FDEAF1' | ||
}, | ||
blue: { | ||
100: '#EBF7FD', | ||
400: '#86CEF5', | ||
500: '#5EBDF2', | ||
600: '#36ADEF', | ||
700: '#2B8ABF' | ||
}, | ||
purple: { | ||
300: '#DBBDE9', | ||
400: '#C99CDF', | ||
600: '#A55AC9', | ||
700: '#7167AA' | ||
}, | ||
frostyNightfall: { | ||
200: '#EAEBF0' | ||
} | ||
}; |
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,22 @@ | ||
import { defineStyleConfig } from '@chakra-ui/react'; | ||
|
||
export const Button = defineStyleConfig({ | ||
baseStyle: { | ||
borderRadius: '4px' | ||
}, | ||
variants: { | ||
primary: { | ||
background: 'grayModern.900', | ||
color: 'white' | ||
}, | ||
secondary: { | ||
border: '1px solid', | ||
borderColor: 'grayModern.200', | ||
background: 'white_.400' | ||
}, | ||
warn: { | ||
bgColor: 'error.500', | ||
color: 'white_.100' | ||
} | ||
} | ||
}); |
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,5 @@ | ||
import { Button } from './Button'; | ||
export const components = { | ||
Button | ||
}; | ||
export * from './Button'; |
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,9 @@ | ||
export const fontSizes = { | ||
sm: '10px', | ||
base: '12px', | ||
md: '14px', | ||
lg: '16px', | ||
xl: '16px', | ||
'2xl': '18px', | ||
'3xl': '22px' | ||
}; |
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 @@ | ||
export * from './colors'; | ||
export * from './theme'; | ||
export * from './components'; | ||
export * from './fontSizes'; |
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,9 @@ | ||
import { extendTheme } from '@chakra-ui/react'; | ||
import { colors } from './colors'; | ||
import { components } from './components'; | ||
import { fontSizes } from './fontSizes'; | ||
export const theme = extendTheme({ | ||
colors, | ||
components, | ||
fontSizes | ||
}); |
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,8 @@ | ||
{ | ||
"compilerOptions": { | ||
"lib": ["dom", "dom.iterable", "esnext"] | ||
}, | ||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], | ||
"exclude": ["node_modules"], | ||
"extends": "../../tsconfig.web.json" | ||
} |
Oops, something went wrong.