This repository contains the documentation site for DesignKit, a powerful hard fork of Shoelace that integrates Tailwind CSS and Shadcn UI design patterns.
DesignKit combines the best of:
- Shoelace's Web Components: A solid foundation of framework-agnostic components
- Tailwind CSS: Utility-first styling for unlimited design flexibility
- Shadcn UI: Modern design patterns and component architecture
The result is a powerful, flexible component library that works with any framework or vanilla JavaScript.
This documentation site is built with Jekyll and uses the following structure:
- /_components: Component documentation
- /_docs: Core documentation and guides
- /_frameworks: Framework integration guides
- /_tutorials: Step-by-step tutorials
- /_resources: Additional resources
- /_includes: Reusable Jekyll templates
- /assets: Static assets like images and CSS
- Ruby 3.0+
- Bundler
- Node.js 14+
- Clone this repository
- Install dependencies:
bundle install
- Start the development server:
bundle exec jekyll serve - Visit
http://localhost:4000in your browser
To build the site for production:
JEKYLL_ENV=production bundle exec jekyll buildThe compiled site will be in the _site directory.
Contributions are welcome! Please feel free to submit a Pull Request.
This documentation is licensed under the MIT License.
This repository contains the source code for the DesignKit UI website. The site serves as comprehensive documentation for the DesignKit UI component library, featuring component demos, API references, and guides.
- Built with 11ty - a simple yet powerful static site generator
- Uses Nunjucks for templating
- Custom markdown processing with enhanced syntax for component demos
- Search functionality powered by Lunr
- Automatically generated documentation from component metadata
_includes/- Layout templates and partials_utilities/- Helper functions and utilities for the build processassets/- Static assets like images, CSS, and JavaScriptpages/- Content pages organized by sectionscomponents/- Individual component documentationgetting-started/- Installation and usage guidesframeworks/- Framework integration guidestokens/- Design token documentationtutorials/- Step-by-step tutorials and examplesresources/- Additional resources and information
- Node.js 16 or higher
- npm, yarn, pnpm, or bun package manager
- Clone this repository:
git clone https://github.com/better-web-initiative/designkit-website.git
cd designkit-website- Install dependencies:
npm install
# or
yarn
# or
pnpm install
# or
bun install- Start the development server:
npm run start
# or
yarn start
# or
pnpm start
# or
bun run start- Visit
http://localhost:4000in your browser
To build the site for production:
npm run build
# or
yarn build
# or
pnpm build
# or
bun run buildThe built site will be available in the _site directory.
We welcome contributions to improve the documentation, fix bugs, or enhance the site. To contribute:
- Fork this repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Please read our Code of Conduct before contributing.
When adding documentation for a new component:
- Create a new markdown file in the
pages/components/directory - Use the front matter to define metadata
- Follow the existing documentation pattern for consistency
Example:
---
title: Button
description: A versatile button component with multiple styles and states.
---
# Button
Buttons represent actions that users can take.
## Examples
```html:preview
<kit-button>Default Button</kit-button>
<kit-button variant="primary">Primary Button</kit-button>...
## License
This project is licensed under the AGPL-3.0 License - see the LICENSE file for details.
---
<div align="center">
<p>Built with ❤️ by the <a href="https://better-web.org">Better Web Initiative</a> for the future of web development.</p>
<p>
<a href="https://github.com/betterwebinit/designkit/stargazers">⭐ Star us on GitHub</a> •
<a href="https://twitter.com/BetterWebInit">🐦 Follow us on Twitter</a> •
<a href="https://better-web.org">🌐 Visit our website</a>
</p>
</div>