Skip to content

Commit

Permalink
feat: new package @marigold/theme-docs (#3933)
Browse files Browse the repository at this point in the history
* move docs

* adjust tailwind content paths

* Create giant-frogs-love.md

* set version
  • Loading branch information
sebald committed Jun 5, 2024
1 parent 51594c9 commit bc08a48
Show file tree
Hide file tree
Showing 33 changed files with 220 additions and 108 deletions.
7 changes: 7 additions & 0 deletions .changeset/giant-frogs-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@marigold/docs": patch
"@marigold/theme-core": patch
"@marigold/theme-docs": major
---

feat: new package `@marigold/theme-docs`
2 changes: 0 additions & 2 deletions docs/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use-client';

import { siteConfig } from '@/lib/config';
import { b2bTheme, coreTheme, theme } from '@/theme';
import { MarigoldProvider } from '@/ui';
Expand Down
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@marigold/icons": "workspace:*",
"@marigold/theme-b2b": "workspace:*",
"@marigold/theme-core": "workspace:*",
"@marigold/theme-docs": "workspace:*",
"@marigold/theme-preset": "workspace:*",
"@react-aria/i18n": "3.11.1",
"@tailwindcss/typography": "0.5.10",
Expand Down
5 changes: 1 addition & 4 deletions docs/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import { Config } from 'tailwindcss/types/config';

import { preset } from './theme/preset';
import { preset } from '@marigold/theme-docs/preset';

const config: Config = {
content: [
...preset.content,

// From docs
'./theme/root.ts',
'./theme/*.ts',
'./theme/**/*.ts',
'./ui/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',

Expand Down
22 changes: 2 additions & 20 deletions docs/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
'use client';

import { Theme } from '@marigold/system';
import b2bTheme from '@marigold/theme-b2b';
import coreTheme from '@marigold/theme-core';
import theme from '@marigold/theme-docs';

import * as components from './components';
import { root } from './root';
import { colors } from './tokens';

export const theme: Theme = {
name: 'docs',
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
'2xl': '1536px',
},
root,
colors,
components,
};

export { b2bTheme, coreTheme };
export { theme, b2bTheme, coreTheme };
Loading

0 comments on commit bc08a48

Please sign in to comment.