Skip to content

Commit

Permalink
feat: added landing page matching daisyui.com
Browse files Browse the repository at this point in the history
  • Loading branch information
christianblandford committed Mar 18, 2022
1 parent 1f37e69 commit d21ce24
Show file tree
Hide file tree
Showing 12 changed files with 1,496 additions and 26 deletions.
6 changes: 5 additions & 1 deletion .storybook/main.cjs
@@ -1,5 +1,9 @@
module.exports = {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
stories: [
'../src/docs/pages/Welcome.stories.mdx',
'../src/**/*.stories.mdx',
'../src/**/*.stories.@(js|jsx|ts|tsx)',
],
addons: [
'@storybook/addon-links',
{
Expand Down
9 changes: 8 additions & 1 deletion .storybook/preview.tsx
Expand Up @@ -6,6 +6,7 @@ import StoryLayout from './story-layout'

import '../src/styles.css'
import { DEFAULT_THEME, STORAGE_KEY, THEME_PICKER_LIST } from './theming'
import { docsTheme } from './theme.cjs'

export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
Expand All @@ -21,7 +22,7 @@ export const parameters = {
options: {
storySort: {
order: [
'Home',
'Welcome',
'Actions',
'Data Display',
'Data Input',
Expand All @@ -47,6 +48,12 @@ export const parameters = {
},
list: THEME_PICKER_LIST,
},
docs: {
theme: docsTheme,
options: {
layout: 'fullscreen',
},
},
}

export const decorators = [
Expand Down
14 changes: 11 additions & 3 deletions .storybook/theme.cjs
@@ -1,10 +1,11 @@
import { create } from '@storybook/theming'

export default create({
const baseTheme = {
base: 'dark',
brandTitle: 'react-daisyUI',
brandUrl: 'https://github.com/daisyui/react-daisyui',
brandImage: 'https://raw.githubusercontent.com/saadeghi/files/main/daisyui/logo-4.svg',
brandImage:
'https://raw.githubusercontent.com/saadeghi/files/main/daisyui/logo-4.svg',

colorPrimary: '#3ABFF8',
colorSecondary: '#6419E6',
Expand All @@ -21,4 +22,11 @@ export default create({
barTextColor: '#A6ADBA',
barSelectedColor: '#C3D0EA',
barBg: '#191D24',
})
}

export const docsTheme = {
...baseTheme,
maxWidth: '100%',
}

export default create(baseTheme)
43 changes: 22 additions & 21 deletions eslintrc.json
@@ -1,22 +1,23 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "detect"
}
},
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"rules": {}
}
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "detect"
}
},
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended",
"plugin:mdx/recommended"
],
"rules": {}
}

0 comments on commit d21ce24

Please sign in to comment.