~/talk

Create a Custom Component Library with Vue & Tailwind CSS

Talkat Vueconf.US 2022 · 2022-06-08..06-10· [vue, web-platform, frontend-architecture]
slides:none on file

Builds a small Florida-themed component library using Vue CLI and Tailwind CSS via PostCSS, creates a components folder with an index export, implements a reusable button styled with utility classes, hover/active states and dark mode via the dark: prefix, adds props for full width, compiles a dist with main/module and styles.css, publishes to NPM as Florida components, and demonstrates installing it in a demo app (initially missing Vue.use then works).

AI-written summary · about

  1. 0:00Custom Component Libraries with Vue and Tailwind
  2. 1:23Component Libraries
  3. 2:10Step 1: Generate a Vue application
  4. 3:11Step 2: Install Tailwind CSS
  5. 7:06Step 3: Build your First Component
  6. 11:45Step 4: Register Components
  7. 12:27Step 5: Configure Package.json
  8. 15:16Publish to NPM
  9. 16:33In action
  10. 20:06Other things to consider
  11. 21:34Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.