@designervoid/ton-design-system
v4.2.0-0
Published
[![Telegram System Design DAO Forum][telegram-system-design-dao-badge]][telegram-system-design-dao-url]
Downloads
302
Readme
TON Design System
https://ton.org/en/brand-assets
Package size
/
@designervoid/ton-design-system
/
lib/
folder
20.8 kB
package/
folder
13.3 kB
public/
folder
28.3 kB
LICENSE.md
text/markdown
1.09 kB
README.md
text/markdown
2.03 kB
package.json
application/json
516 B
Repository size
git count-objects -vH
count: 733
size: 3.45 MiB
in-pack: 1666
packs: 2
size-pack: 3.20 MiB
prune-packable: 55
garbage: 0
size-garbage: 0 bytes
TDS Highlights
Advantages of TailwindCSS
TailwindCSS offers flexibility and scalability with its utility-first approach.
It allows for fast, customizable UI development without imposing design constraints.Awesome DX (Developer Experience)
TailwindCSS improves developer experience by offering instant feedback, comprehensive documentation, and tools like
rsbuild
for optimized development workflows.Atomic CSS
TailwindCSS automates the generation of atomic classes, where each class does one specific thing, ensuring small, reusable, and predictable CSS.
Design Tokens
Design tokens provide a system for values like colors, typography, and spacing.
The example includes the golden ratio for generating dynamic spacing, font sizes, and more, ensuring design consistency across the app.Lightweight
TailwindCSS is lightweight, especially with tools like patterns-vanjs, which offer a lean, production-ready solution for creating fast and optimized products.
Ready to go patterns
A folder (registry/patterns) with pre-built, customizable UI patterns, enabling quick prototyping and reusable components for rapid development.
Checkout stable patterns.CLI
You can copy projects and components from the
registry
with the CLI. See README.md#use-cli.
Usage
Atomic Components using Declarative components with Raw Framework
import { tags } from './package/raw'
const { div, button } = tags;
export const Button = () => {
return (
div(
{ className='px-2 py-2 h-full flex' },
button(
{ class: "custom-classname", variant="default" },
'Cross-platform button (default)'
)
);
};
More examples
- Examples of usages within
ton-design-system/registry
- Example of usage with
next-typescript
- Example of usage with
rn-typescript
Use CLI
Don't Trust, Verify
Quick start
Copy patterns
- Init cli
npx "@designervoid/ton-design-system"@"4.2.0" cli -g
npx "@designervoid/ton-design-system"@"4.2.0" cli -g
Repository cloned successfully.
? What do you want to copy? › - Use arrow-keys. Return to submit.
❯ Project
Component
- Choose pattern
✔ What do you want to copy? › Project
? Select the project to copy › - Use arrow-keys. Return to submit.
README.md
patterns-raw-library-rust-wasm
patterns-raw-library-wat
patterns-react
❯ patterns-vanjs
raw-framework
raw-library
- Enter new project name (instead of
patterns-vanjs
)
Repository cloned successfully.
✔ What do you want to copy? › Project
✔ Select the project to copy › patterns-vanjs
? Enter your project name › copied-patterns-vanjs
- Wait for install
Repository cloned successfully.
✔ What do you want to copy? › Project
✔ Select the project to copy › patterns-vanjs
✔ Enter your project name … copied-patterns-vanjs
Project copied successfully.
Detected pnpm!
Lockfile is up to date, resolution step is skipped
Packages: +261
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 261, reused 261, downloaded 0, added 261, done
dependencies:
+ vanjs-core 1.5.2
devDependencies:
+ @biomejs/biome 1.9.4
+ @rsbuild/core 1.0.19
+ @types/jsdom 21.1.7
+ autoprefixer 10.4.20
+ cssnano 7.0.6
+ jsdom 25.0.1
+ postcss 8.4.47
+ tailwindcss 3.4.14
+ typescript 5.6.2
+ vitest 2.1.2
Done in 5.3s
Dependencies installed successfully.
Cleaning up...
Cleanup complete.
- Enter
copied-patterns-vanjs
cd copied-patterns-vanjs
- Install
@designervoid/ton-design-system
pnpm add "@designervoid/ton-design-system"@"4.2.0"
- Edit
tailwind.config.js
const { tdsTheme } = require("../../package/index");
Change to
const { tdsTheme } = require("@designervoid/ton-design-system");
Copy components
npx "@designervoid/ton-design-system"@"4.2.0" cli -g
Init tailwind
npx "@designervoid/ton-design-system"@"4.2.0" cli -t
Init TDS
npx "@designervoid/ton-design-system"@"4.2.0" cli -tds
License
MIT