Designing with Tailwind CSS
This repo contains the source code for each of the videos in the free Designing with Tailwind CSS course.
Each finished course module has its own top-level folder, and each one of those folders contains a project per lesson.
Tools used in the videos
- VS Code as the editor
- Sizzy for the browser preview on the right-hand side
- Tailwind CSS Intellisense for intelligent auto-completion in VS Code
md:hover:bg-green-400 without effect
I learn the tailwindcss by the Hover, Focus, and Active Styles video on my computer, I use chrome 76.0.3809.100 (64 bit) my package.json
when I click the link in md, the background turn green ,but when I move the mouse over the link, the background don't change
my config file
a way to reference breakpoint for conditional rendering
I cannot find a way to sort of somehow can figure out the viewport screen size to manipulate with. What I want is like in vuetify and material UI they come with breakpoint context so you can either choose to render the element or not. Right now the responsive utility class only set their display style to either hidden or block
Can see anything / Structuring a Basic Card
What's is the proper way to start the dev server in this setup? The demo starts a bit too quicky.
I'm trying the reproduce this step and I can't. So far I did 'npm run serve' but nothing shows up. Here is my repo.
Clicking that backdrop button for closing the dropdown menu resets the page scroll position!
It's not clear in the video, because there's nothing in the page body, but if the page content is scrolled down from the top, clicking the background overlay button for closing the dropdown menu resets the scroll position.
Why is this and what's the best way to fix it?
Thanks!
Bump eslint-utils from 1.3.1 to 1.4.2 in /01-getting-up-and-running/08-optimizing-for-production
Bumps eslint-utils from 1.3.1 to 1.4.2.
Commits
4e1bc07
1.4.2e4cb014
π add null test230a4e2
1.4.108158db
π fix getStaticValue security issue587cca2
π fix getStringIfConstant to handle literals correctlyc119e83
π fix getStaticValue to handle bigint correctly531b16f
π 1.4.0276303d
β upgrade rollupcb518c7
π fix hasSideEffect false negativeaac472e
π fix isParenthesized had false positive on ImportExpression (fixes #1)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot ignore this [patch|minor|major] version
will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and languageYou can disable automated security fix PRs for this repo from the Security Alerts page.
Bump eslint-utils from 1.3.1 to 1.4.2 in /01-getting-up-and-running/06-extracting-reusable-components
Bumps eslint-utils from 1.3.1 to 1.4.2.
Commits
4e1bc07
1.4.2e4cb014
π add null test230a4e2
1.4.108158db
π fix getStaticValue security issue587cca2
π fix getStringIfConstant to handle literals correctlyc119e83
π fix getStaticValue to handle bigint correctly531b16f
π 1.4.0276303d
β upgrade rollupcb518c7
π fix hasSideEffect false negativeaac472e
π fix isParenthesized had false positive on ImportExpression (fixes #1)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot ignore this [patch|minor|major] version
will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and languageYou can disable automated security fix PRs for this repo from the Security Alerts page.
Bump lodash from 4.17.11 to 4.17.15 in /01-getting-up-and-running/01-setting-up-tailwind-and-postcss
Bumps lodash from 4.17.11 to 4.17.15.
Commits
ddfd9b1
Bump to v4.17.15.b185fce
Rebuild lodash and docs.be87d30
Bump to v4.17.14.a6fe6b1
Rebuild lodash and docs.e371828
Bump to v4.17.13.357e899
Rebuild lodash and docs.fd9a062
Bump to v4.17.12.e77d681
Rebuild lodash and docs.629d186
Update OpenJS references.2406eac
Fix minified build.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot ignore this [patch|minor|major] version
will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and languageYou can disable automated security fix PRs for this repo from the Security Alerts page.
Minify CSS issue
In the video I see that you have a minified CSS file and it seems it is created every time you build it with postcss. In the beginning of the video series the css files have many comments and white spaces (like mine). I am unable to find how to get this minified CSS file ANYWHERE on the internet and I did not hear you talk about it either. How do I do this, since my CSS files are almost 2MB! I am designing in Craft CMS which is in dev mode (set in .env file) but I don't think that influences it.
Status of the upcoming lessons
Hello team, You might have encountered this earlier but I don't see any update regarding the unfinished lessons listed in the documentation site.
These lessons were very helpful to me and I am sure to many other folks while getting started. I would love if you could take some time to complete the pending ones.
Thanks :smile:
@apply not taking multiple values in a line
@apply inline-block px-5 py-3 rounded-lg text-sm uppercase tracking-wider font-semibold;
error: { "resource": "/home/sachin/Documents/Study/html/tailwindproject/css/tailwind.css", "owner": "generated_diagnostic_collection_name#1", "code": "css-semicolonexpected", "severity": 8, "message": "semi-colon expected", "source": "css", "startLineNumber": 5, "startColumn": 23, "endLineNumber": 5, "endColumn": 27 } semi-colon expected
But when i write mutiple @apply it works like in .btn{ @apply some class @apply some class } like this it works
Need v-bind:key now for v-for
I got a linting error I think from the Vetur extension on Line 29 in App.vue in vscode
<div class="mt-6 w-full px-4 lg:w-1/2 xl:w-1/3" v-for="destination in popularDestinations">
needs to become something like
<div class="mt-6 w-full px-4 lg:w-1/2 xl:w-1/3" v-for="destination in popularDestinations" v-bind:key="destination">
or it throws a v-bind:key error for me
Not sure if this is a bug or intended from linting, but since vscode advises installing Vetur when it sees a .vue extension, others may have the same problem