Tailwind

Tailwind Css ํ”„๋ ˆ์ž„์›Œํฌ๋กœ ๋น ๋ฅด๊ณ  ํšจ์œจ์ ์œผ๋กœ css๋ฅผ ์„ค์ •ํ•  ์ˆ˜ ์žˆ๋Š” ํˆด์ด๋‹ค. Tailwind Docs Installation tailwind ๋ชจ๋“ˆ ์„ค์น˜ npm install -D tailwindcss@latest ๋ช…๋ น์„ ์‚ฌ์šฉํ•˜์—ฌ ์„ค์น˜๊ฐ€ ๊ฐ€๋Šฅํ•˜๋‹ค. npx tailwindcss init ๋ช…๋ น์„ ์‚ฌ์šฉํ•˜๋ฉด ํ˜„์žฌ ๊ฒฝ๋กœ์— tailwind.config.js ํŒŒ์ผ์ด ์ƒ์„ฑ๋˜๋ฉฐ, ํ˜„์žฌ ํ”„๋กœ์ ํŠธ์—์„œ tailwind๋ฅผ ์ ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ๋œ๋‹ค. tailwind.config.js ํŒŒ์ผ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๊ตฌ์„ฑ๋œ๋‹ค. module.exports = { // ํฌํ•จํ•  ํ•ญ๋ชฉ content: ['./src/**/*.{html,js,jsx,ts,tsx, mustache}'], // ์ œ์™ธํ•  ํ•ญ๋ชฉ (์ตœ์‹  ๋ฒ„์ „์—์„œ ์‚ฌ์šฉ๋˜์ง€ ์•Š๋Š” ๋ฌธ๋ฒ•) // purge: ["./src/**/*.html", "./src/**/*.js"], // jit mode๋Š” purge์™€ ํ•จ๊ป˜ ์„ธํŠธ๋กœ ์‚ฌ์šฉ๋˜์—ˆ๊ณ , ์„ธํŠธ๋กœ ์‚ฌ๋ผ์กŒ๋‹ค.(?) // mode: process.env.NODE_ENV ? 'jit' : undefined, darkMode: 'class', // [false, 'mdeia', 'class'] theme: { fontFamily: { display: ['Open Sans', 'sans-serif'], body: ['Open Sans', 'sans-serif'], }, extend: { fontSize: { 14: '14px', }, backgroundColor: { 'main-bg': '#FAFBFB', 'main-dark-bg': '#20232A', 'secondary-dark-bg': '#33373E', 'light-gray': '#F7F7F7', 'half-transparent': 'rgba(0, 0, 0, 0.5)', }, borderWidth: { 1: '1px', }, borderColor: { color: 'rgba(0, 0, 0, 0.1)', }, width: { 400: '400px', 760: '760px', 780: '780px', 800: '800px', 1000: '1000px', 1200: '1200px', 1400: '1400px', }, height: { 80: '80px', }, minHeight: { 590: '590px', }, backgroundImage: { 'hero-pattern': "url('https://demos.wrappixel.com/premium-admin-templates/react/flexy-react/main/static/media/welcome-bg-2x-svg.25338f53.svg')", }, }, }, plugins: [], }; tailwind๋Š” react์™€ ๊ฐ™์€ framework์—์„œ๋Š” ์ž๋™์œผ๋กœ ์ ์šฉ์ด ๊ฐ€๋Šฅํ•˜์ง€๋งŒ, ๊ทธ ์™ธ์˜ ๊ฒฝ์šฐ์—๋Š” postcss ๋“ฑ๊ณผ ๊ฐ™์€ ๋ชจ๋“ˆ์˜ ๋„์›€์ด ํ•„์š”ํ•˜๋‹ค. tailwind ๋ชจ๋“ˆ ์„ค์น˜์™€ tailwind.config.js ๊ตฌ์„ฑ์ด ๋๋‚ฌ๋‹ค๋ฉด, tailwind๋กœ ์ž‘์„ฑ๋œ css๋ฅผ ์ฝ”๋“œ์— ์ถ”๊ฐ€ํ•ด์ค˜์•ผ ํ•œ๋‹ค. index.css์— ์•„๋ž˜ ๊ตฌ๋ฌธ์„ ์ถ”๊ฐ€ํ•œ๋‹ค. @tailwind base; @tailwind components; @tailwind utilities; postcss ...

<span title='2022-06-02 21:55:38 +0900 KST'>June 2, 2022</span>&nbsp;ยท&nbsp;3 min&nbsp;ยท&nbsp;AswinBlue

Css

CSS ํŠน์ • ๊ฐœ์ฒด์— ํšจ๊ณผ๋ฅผ ๋ถ€๊ณผํ•œ๋‹ค. ์ด๋ฅผ declaration ์ด๋ผ ์นญํ•œ๋‹ค. ์ค‘๋ณต์˜ ์ œ๊ฑฐ ๊ฐ€๋Šฅ, ์œ ์ง€๋ณด์ˆ˜ ์ˆ˜์›”, ๊ฐ€๋…์„ฑ ์ฆ๊ฐ€ ์œ„์—์„œ ๋ถ€ํ„ฐ ์•„๋ž˜๋กœ ์ฝ์–ด๊ฐ€๋ฉฐ ํšจ๊ณผ ์ ์šฉ, ์ค‘๋ณต ๋ถˆ๊ฐ€๋Šฅํ•œ ํšจ๊ณผ์— ๋Œ€ํ•ด์„œ๋Š” ์ด์ „ ํšจ๊ณผ๊ฐ€ ์‚ฌ๋ผ์ง tag ์„ ํƒ์ž < calss ์„ ํƒ์ž < id ์„ ํƒ์ž ๋กœ ์šฐ์„  ์ˆœ์œ„๊ฐ€ ๋†’๋‹ค. html ๋ฌธ์„œ ์•ˆ์— <style> ํƒœ๊ทธ ์•ˆ์— ์ž‘์„ฑ ๊ฐ€๋Šฅ ex ) <style> a { color:black; } </style> ํƒœ๊ทธ์˜ ์ข…๋ฅ˜๋ณ„๋กœ ์†์„ฑ ์„ค์ • ๊ฐ€๋Šฅ ์—ฌ๊ธฐ์„œ ํƒœ๊ทธ a ๋Š” ์„ ํƒ์ž(selector)๋ผ๊ณ  ํ•œ๋‹ค. ์„ ํƒ์ž๋Š” ,๋กœ ๊ตฌ๋ณ„ํ•˜์—ฌ ํ•จ๊ป˜ ์‚ฌ์šฉ ๊ฐ€๋Šฅ ...

<span title='2020-06-23 20:38:05 +0900 KST'>June 23, 2020</span>&nbsp;ยท&nbsp;2 min&nbsp;ยท&nbsp;AswinBlue

Markdown Syntax Guide

This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme. ...

<span title='2019-03-11 00:00:00 +0000 UTC'>March 11, 2019</span>&nbsp;ยท&nbsp;8 min&nbsp;ยท&nbsp;Hugo Authors