Get started
Argent is not on npm yet. These are the steps for v0.1. Until then, read the source on GitHub.
Install
npm install @rajatweb/argentAdd the styles and a provider
Argent needs React 19. The stylesheet holds everything, tokens included.
import '@rajatweb/argent/styles.css'
import { ArgentProvider } from '@rajatweb/argent'
export function App() {
return (
<ArgentProvider metal="sterling">
…
</ArgentProvider>
)
}Choose a theme
Pages follow the device setting. Set data-theme on the html element to choose, and inline themeScript in the head to restore a saved choice.
import { Button } from '@rajatweb/argent'
<Button onClick={save}>Save changes</Button>