Skip to content

Commit

Permalink
feat (tailwind): new tailwind framework
Browse files Browse the repository at this point in the history
  • Loading branch information
santanche committed Jul 26, 2023
1 parent 27c8262 commit 064e685
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
25 changes: 25 additions & 0 deletions frameworks/tailwind/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
permalink: /frameworks/tailwind/
layout: single
---

Tailwind CSS
============

[Tailwind CSS](https://tailwindcss.com/) is a tool to manage CSS based on the principle of CSS classes related to atomic styles.

Installing and a configuring Tailwind CSS according to the [Get started with Tailwind CSS](https://tailwindcss.com/docs/installation).

Basic steps to install on Tailwind CSS.

# Summary of Installation Commands

~~~
npm install -D tailwindcss
npx tailwindcss init
~~~


~~~
npx tailwindcss -i ./src/main-tw.css -o ./dist/main.css --watch
~~~
17 changes: 17 additions & 0 deletions javascript/advanced/js/tagged-template.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const html = (strings, ...values) => {return { raw: strings, values }}

const title = 'My Title'
const message = 'My Message'

const doc = html`<!DOCTYPE html>
<html lang="en-US">
<head>
<title>${title}</title>
</head>
<body>
<h1>${message}</h1>
</body>
</html>`;

console.log('=== doc')
console.log(doc)
8 changes: 8 additions & 0 deletions javascript/advanced/tagged-template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<body>
<h1>Tagged Template</h1>
<script type="text/javascript" src="js/tagged-template.js">
</script>
</body>
</html>

0 comments on commit 064e685

Please sign in to comment.