aleksei-berezkin/typique: Bundler-agnostic, zero-runtime CSS-in-TS β€” powered by a TypeScript plugin
github.comΒ·4dΒ·
Discuss: Hacker News
πŸ”€Font Engineering
Preview
Report Post

Typique

Typique (pronounced /ti’pik/) is a framework- and bundler-agnostic, zero-runtime CSS-in-TS library powered by a TypeScript plugin. It generates readable, unique class and variable names directly as completion items in your editor. Styles exist only as types, so they vanish cleanly from your final build.

Completion demo

What it looks like in code

import type { Css } from 'typique'
import { space } from './my-const'

const titleClass = 'title-1' satisfies Css<{
paddingTop: `calc(2 * ${typeof space}px)`
'& > code': {
backgroundColor: '#eee'
}
}>

How it works

  • The constant titleClass follows the configurable naming convention, which instructs Typique to provide completion items.
  • The value title-1 was suggested because title and title-0 are already …

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help