A world-class documentation website built with Docusaurus, featuring Stripe-quality design and UX.
Note: This is a standalone documentation site. All markdown content is located in the
./docsdirectory.
- Primary Font: Inter (Google Fonts)
- Monospace Font: JetBrains Mono
- Modern type scale with proper hierarchy
- Optimized for readability with generous line-height
Primary: #0066ff (Blue 600)
Slate Scale: 50-900 for neutrals
Dark Mode: Automatic with respectPrefersColorScheme- TokenScript syntax highlighting with custom Prism.js plugin
- Compact, information-dense layout optimized for productivity
- Professional design inspired by Stripe and Vercel documentation
- Clean tables with hover effects and proper formatting
- Responsive design that works on all devices
- Dark mode support with seamless switching
- Excellent typography with Inter font family (15px base for density)
- Smooth interactions with subtle animations and hover states
cd docs-website
npm install
npm run docusaurus:startVisit http://localhost:3000/ to see the site.
npm run docusaurus:start– Start development server with live reloadnpm run docusaurus:build– Generate production buildnpm run docusaurus:serve– Preview production build locallynpm run docusaurus:clear– Clear Docusaurus cachesnpm run lint– Check code quality with Biomenpm run format– Format code with Biome
Use TokenScript syntax highlighting in your markdown files with the tokenscript language identifier:
variable primary: Color.Hsl = hsl(220, 100, 50);
return primary.to.hex();
The custom Prism.js plugin (src/theme/prism-tokenscript.js) automatically highlights:
- Keywords:
variable,if,return,while,for - Types:
Color,Number,String,List,Dictionary - Color Types:
Color.Hsl,Color.Rgb,Color.Oklch - Functions:
rgb(),hsl(),round_to() - References:
{token.path.reference} - Hex Colors:
#FF6B35,#000 - Numbers with Units:
16px,1.5rem,100% - Methods:
.to.rgb(),.append() - Comments:
// comment
- Information Density: Optimized for large screens with compact spacing
- Clarity First: Every element serves a purpose
- Professional Polish: Attention to micro-interactions
- Accessibility: Proper contrast ratios and semantic HTML
- Performance: Optimized fonts and minimal dependencies
Homepage
├── Hero Banner (gradient with badge)
├── Features Section (3-column cards)
├── Value Props Section (benefit highlights)
└── CTA Section (call to action)
Documentation Pages
├── Navbar (sticky, blur backdrop)
├── Sidebar (260px, compact navigation)
├── Main Content (max-width 900px for better density)
└── Table of Contents (right rail)
- Clean borders with subtle shadows
- Hover effects with translateY and shadow changes
- Consistent padding and border-radius
- Primary: Blue with white text
- Secondary: White/light with primary color text
- Outline: Transparent with border
- All have smooth hover transitions
- Dark background (#0f172a / #0d1117)
- Custom TokenScript syntax highlighting
- Proper syntax highlighting for multiple languages
- Inline code with light background and subtle border
- Clean borders with proper spacing
- Hover effects for better readability
- Compact padding for information density
- Uppercase header labels for clarity
Automatically respects user's system preference with manual toggle available. All colors have been carefully selected for proper contrast in both modes.
- Keep headlines clear and action-oriented
- Use short paragraphs (2-3 sentences max)
- Include code examples where applicable
- Add visual hierarchy with proper heading levels
- Use lists for scannable content
All theme variables are defined in src/css/custom.css under the :root selector. Modify these to match your brand:
:root {
--ts-blue-600: #0066ff; /* Primary brand color */
--ifm-font-family-base: "Inter", ...;
/* ... more variables */
}The build directory can be deployed to any static hosting service:
- Vercel
- Netlify
- GitHub Pages
- AWS S3 + CloudFront
- Any CDN or web server
npm run docusaurus:build
# Upload the build/ directory to your hostFor more about Docusaurus, visit: https://docusaurus.io/
Built with ❤️ for the TokenScript project