Skip to content

Commit

Permalink
svelte demos in mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
argyleink committed Nov 26, 2023
1 parent efb41be commit d6ce0a5
Show file tree
Hide file tree
Showing 8 changed files with 360 additions and 11 deletions.
1 change: 1 addition & 0 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
@import 'z-index.css';
@import 'borders.css';
@import 'shadows.css';
@import 'motion/easings.css';
@import 'color/palette.oklch.css';
@import 'color/gradients.css';
11 changes: 7 additions & 4 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
import { defineConfig } from 'astro/config'
import svelte from '@astrojs/svelte'
import starlight from '@astrojs/starlight'
import sidebar from './src/sidebar'

// https://astro.build/config
export default defineConfig({
integrations: [
svelte(),
starlight({
title: 'Open Props',
logo: {
src: './src/assets/op.png',
},
// site: 'https://open-props.style',
// customCss: [
// '../css/index.css',
// './src/styles/starlight.overrides.css',
// ],
customCss: [
'../css/index.css',
'./src/styles/demo-animations.css',
// './src/styles/starlight.overrides.css',
],
social: {
github: 'https://github.com/argyleink/open-props',
discord: 'https://discord.gg/AqA4fU886r',
Expand Down
202 changes: 202 additions & 0 deletions docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
"dependencies": {
"@astrojs/check": "^0.3.1",
"@astrojs/starlight": "^0.13.0",
"@astrojs/svelte": "^4.0.4",
"astro": "^3.2.3",
"sharp": "^0.32.5",
"typescript": "^5.3.2"
}
}
}
Loading

0 comments on commit d6ce0a5

Please sign in to comment.