Coder Social home page Coder Social logo

draupnir's Introduction

Contributors Forks Stargazers Issues LinkedIn


Logo

Draupnir DS

My personal design system.
Explore the docs »

View Demo · Report Bug / Feature · Status Application

About The Project

Draupnir, the design system created in a flexible way using RadixUI in its composition with tailwindcss based on styling, standardizing the way I build my personal applications.

Getting Started

Prerequisites

  • npm

    npm install npm@latest -g
  • tailwindcss

    npm install -D tailwindcss postcss autoprefixer
    npx tailwindcss init
    npm i draupnir-ds@latest

Installation

To get correct styles in your application using tailwindcss, you will need to follow the following steps:

1 - on layout.tsx root import

import 'draupnir-ds/src/app/globals.css'

2- Next you will need to add the content settings to tailwind.config.{ts,js}

  "./node_modules/draupnir-ds/src/components/**/*.{js,ts,jsx,tsx,mdx}"

3 - add a section on tailwind.config.{ts,js}

  presets: [
    require("draupnir-ds/tailwind.config.ts")
  ]

Example configuration tailwind.config.ts

import type { Config } from "tailwindcss";

const config: Config = {
  content: [
    "./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
    "./src/components/**/*.{js,ts,jsx,tsx,mdx}",
    "./src/app/**/*.{js,ts,jsx,tsx,mdx}",
    "./node_modules/draupnir-ds/src/components/**/*.{js,ts,jsx,tsx,mdx}"
  ],
  theme: {},
  plugins: [],
  presets: [
    require("draupnir-ds/tailwind.config.ts")
  ]
};
export default config;

4 - on your next.config.mjs set this:

/** @type {import('next').NextConfig} */
const nextConfig = {
  transpilePackages: ['draupnir-ds'],
}
 
module.exports = nextConfig

Usage

For more examples, please refer to the Documentation

Roadmap

See the open issues for a list of proposed features (and known issues).

Author



Antonio Silva

📖 👀

draupnir's People

Contributors

tonybsilva-dev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.