Design system for the City of Tampere.
Tampere Design System (TREDS) is developed by the City of Tampere to enable creating accessible, high-quality digital services with a consistent user experience.
This React component library is built on top of Mantine.
TREDS is released under the European Union Public Licence (EUPL).
See the LICENSE file for full license details.
npm install
npm run preparenpm run storybooknpm run eslint
npm run prettiernpm run buildUntil the npm package is available, clone this repository next to your project folder:
my-projects/
├── tampere-design-system/
└── your-project/
Build Tampere Design System as instructed above, then install it inside your project:
npm install ../Tampere-design-system
npm install --save-peer @mantine/coreNote! If you use Mantine in your project you can remove the --save-peer flag.
main.tsx
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import App from "./App.tsx";
import { ThemeProvider } from "treds";
createRoot(document.getElementById("root")!).render(
<StrictMode>
<ThemeProvider>
<App />
</ThemeProvider>
</StrictMode>
);app.tsx
import { Button } from 'treds';
const App = () => {
return <Button>Click here!</Button>;
};
export default App;