Skip to content

Commit

Permalink
docs: use correct screen sizes in theme (#4288)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebald authored Nov 7, 2024
1 parent f2bae7e commit 29d6f73
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
9 changes: 2 additions & 7 deletions themes/theme-docs/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
import type { Theme } from '@marigold/system';
import * as components from './components';
import { root } from './root';
import { screens } from './screens';
import { colors } from './tokens';

export const theme: Theme = {
name: 'docs',
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
'2xl': '1536px',
},
screens,
root,
colors,
components,
Expand Down
5 changes: 2 additions & 3 deletions themes/theme-docs/src/preset.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { fontFamily } from 'tailwindcss/defaultTheme';
import { createPreset } from '@marigold/theme-preset';
import { screens } from './screens';
import { colors } from './tokens';

export interface PresetConfig {
Expand All @@ -17,9 +18,7 @@ export const preset = createPreset({
container: {
center: true,
padding: '2rem',
screens: {
'2xl': '1400px',
},
screens,
},
extend: {
fontFamily: {
Expand Down
7 changes: 7 additions & 0 deletions themes/theme-docs/src/screens.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export const screens = {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
'2xl': '1400px',
};

0 comments on commit 29d6f73

Please sign in to comment.