Vuetify Tutorial #4 - Text & Colours

Net Ninja · Beginner ·🛠️ AI Tools & Apps ·7y ago

Key Takeaways

Customizes text and colors in Vuetify using color and text classes

Full Transcript

or rather gang so now we know the basics and we have a little project set up ready to use here before we dive into all the juicy stuff and use some of the different beautifying components first of all I want to show you some of the different utility classes the CSS classes that we can use on our elements as well okay so I'd like to talk a little bit about text and colors so right now I'm on the whole page right here home dot view and all I'm going to do is a series of different paragraphs or headings etc so first of all if I do a P tag and just type in some lorem here and by the way inside vs code if you type in alarm and then tab it creates a paragraph of lorem ipsum for you if I save this now and view it in a browser then we go to the home page we should see that paragraph and already we should see some nicer styling than default browser Styles it's a different font family it's Roboto and it just looks a little nicer we have some different spacing going on etc so what I'd like to do now is apply some different utility classes to this paragraph so first of all let's talk about color we've seen in the last tutorial that we can give a class of a certain color to an element and that will color the background so for example if I say class is equal to red then this should color the background red like so okay now we can also color the text so I could say something like white and then to color the text we say - - text so the color first then double - then text if I save this then we can see now we get white text and I could say instead if I wanted blue text like so and we see blue text that doesn't look as good so I'm going to go back to white like so save that and that looks a bit better okay so let's do another example I'm going to create now another P tag right here and inside I'm going to say lorem and tab to create that lorem ipsum and over here again let's give this a different class and this time I'll say class is equal to and it's going to be pink for a pink background and I'm gonna say red - or double - text to give this red text now if I save this now and view this in a browser it should look something like that now at the minute this plushes you can barely see the text now instead of using different colors what we can do is lighten the background and darken the text color so the way we do that if we want to lighten the background we can give this a class of lighten - and then whatever strength of lightining we want so this could be 1 2 3 or 4 if we do 1 it's going to lighten it a little bit save that in preview and you can barely notice the difference if we do 4 then it's going to light in the background quite a lot and you can see the difference right there so that's looking better already but also I'd like to darken the text to make it stand out even more so how do we lighten or darken the text by the way if we want to darken the background we just say dark and high for the four or three instead of whiten when it comes to text we can't just say light in 4 or dark and 4 we have to say text then double - then either lighten or darken we're going to darken it and we're gonna do it by 4 steps so text - darken for if this was dark and one it would darken it just a little bit dark and 4 means we're gonna darken it quite a lot so save that and we can see over here now this is quite dark this text okay so now that stands out and it's more readable so that's colors for you and if you want to see all of the different color classes we can use like red pink or white etc then go to the docs just search for color right here and go to colors and if you scroll down you're gonna see a massive color palette all these different things right here and they all have different keyword names so indigo for example or deep purple and you can see we can apply dark and want to give us this color dark and 3 to give us this color etc alright and the same is for text only we put text in front of the darken or lighten or we'd say cyan - - text to get this color for the text alright so there's a lot of color key words that we can use as CSS classes to display our text differently so as colors now I want to talk about different font sizes and font weights as well so let us now come down here and this time I'm gonna do an h1 inside a I'll just say massive display now if I save this and preview as is then it's gonna look something like this in a browser so h1 not a massive text size just a slightly larger text size now if we want to make this bigger we can apply some different classes to this so what I'm going to do is apply a class right here equal to display and then - 4 so this is the largest text that we can have display 4 gives us the largest text and that is a massive display text now in contrast I'm gonna do another one down here only this time I'll do h4 inside will do small display and then I'm gonna give this a class equal to display - 1 so display ranges from 1 to 4 for being the biggest one being the smallest of the display fonts so now we can see this is a smaller display even though it's still bigger than the original h1 right here okay so these are the different display texts we can use and by the way again if you want to search these you can go to fonts over here go to font sizes and this is where I'm getting all of the different if we scroll up a little all of the different classes from so we used display for this is display 3 right here - and this is display 1 which we used as well let's do a couple of the others as well so back over here I'm gonna do a paragraph tag again and inside I'll just say this is a headline and then we'll give this a class equal to headline save it and preview this in a browser and you can see a little bit smaller okay let's do just a couple more I'm gonna say P and then we'll say this is a sub heading and I'm gonna give this a class of sub heading as well this class equals sub heading save that here in the browser and we can see we're getting smaller again and then finally I'm gonna do a tiny one which is caption so P and then give this a class of caption tab and then this is a caption and we typically use this underneath diagrams or drawings etc and we can see that is a tiny font right there okay so again if you want to see all of the different classes just go to this page search for text and you're going to see text size you'll also see the font weights here as well so we can apply different font weights to our different paragraphs or different elements so for example if I get this one right here font-weight:bold and if I apply this now to the subheading like so save it and preview this in a browser then we're gonna see that this is now bold all right so we have these different font weight classes as well that we can use and we have fun italic for italic fonts and if we scroll right down we can see the text transforms as well so either capitalized something lowercase something or uppercase something and capitalized just capitalizes the first letter like this of each word uppercase makes it all into uppercase lowercase makes it all into lowercase so these are the different color and text classes that we have access to inside our project and they just come in handy when we want to style our different elements a little bit more

Original Description

Hey gang, in this Vuetify tutorial I'll explain how we can use a few of of the colour and text classes to make our font coloured / bold / large / small etc. VUE & FIREBASE FULL COURSE - https://www.udemy.com/build-web-apps-with-vuejs-firebase/?couponCode=NINJAYT18 Vue JS free course - https://www.youtube.com/playlist?list=PL4cUxeGkcC9gQcYgjhBoeQH7wiAyZNrYa Vue CLI 3 tutorial - https://www.youtube.com/playlist?list=PL4cUxeGkcC9iCKx06qSncuvEPZ7x1UnKD ---------------------------------------- 🐱‍💻 🐱‍💻 Course Links: + Course files - https://github.com/iamshaunjp/vuetify-playlist + VS Code editor - https://code.visualstudio.com/ 🤑🤑 Donate + https://www.paypal.me/thenetninja 🎓🎓 Find me on Udemy + https://www.udemy.com/user/47fd83f6-5e4a-4e87-a0f0-519ac51f91b6/
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Net Ninja · Net Ninja · 0 of 60

← Previous Next →
1 Regular Expressions (RegEx) Tutorial #14 - Matching a Username
Regular Expressions (RegEx) Tutorial #14 - Matching a Username
Net Ninja
2 Regular Expressions (RegEx) Tutorial #15 - Email RegEx Pattern
Regular Expressions (RegEx) Tutorial #15 - Email RegEx Pattern
Net Ninja
3 Regular Expressions (RegEx) Tutorial #16 - Finishing Touches
Regular Expressions (RegEx) Tutorial #16 - Finishing Touches
Net Ninja
4 GraphQL Tutorial #1 - Introduction to GraphQL
GraphQL Tutorial #1 - Introduction to GraphQL
Net Ninja
5 GraphQL Tutorial #2 - A Birdseye View of GraphQL
GraphQL Tutorial #2 - A Birdseye View of GraphQL
Net Ninja
6 GraphQL Tutorial #3 - Project (stack) Overview
GraphQL Tutorial #3 - Project (stack) Overview
Net Ninja
7 GraphQL Tutorial #4 - Making Queries (front-end preview)
GraphQL Tutorial #4 - Making Queries (front-end preview)
Net Ninja
8 GraphQL Tutorial #5 - Express App Setup
GraphQL Tutorial #5 - Express App Setup
Net Ninja
9 GraphQL Tutorial #6 - Setting up GraphQL
GraphQL Tutorial #6 - Setting up GraphQL
Net Ninja
10 GraphQL Tutorial #7 - GraphQL Schema
GraphQL Tutorial #7 - GraphQL Schema
Net Ninja
11 GraphQL Tutorial #8 - Root Query
GraphQL Tutorial #8 - Root Query
Net Ninja
12 GraphQL Tutorial #9 - The Resolve Function
GraphQL Tutorial #9 - The Resolve Function
Net Ninja
13 GraphQL Tutorial #10 - Testing Queries in Graphiql
GraphQL Tutorial #10 - Testing Queries in Graphiql
Net Ninja
14 GraphQL Tutorial #11 - GraphQL ID Type
GraphQL Tutorial #11 - GraphQL ID Type
Net Ninja
15 GraphQL Tutorial #12 - Author Type
GraphQL Tutorial #12 - Author Type
Net Ninja
16 GraphQL Tutorial #13 - Type Relations
GraphQL Tutorial #13 - Type Relations
Net Ninja
17 GraphQL Tutorial #14 - GraphQL Lists
GraphQL Tutorial #14 - GraphQL Lists
Net Ninja
18 GraphQL Tutorial #15 - More on Root Queries
GraphQL Tutorial #15 - More on Root Queries
Net Ninja
19 GraphQL Tutorial #16 - Connecting to mLab
GraphQL Tutorial #16 - Connecting to mLab
Net Ninja
20 GraphQL Tutorial #17 - Mongoose Models
GraphQL Tutorial #17 - Mongoose Models
Net Ninja
21 GraphQL Tutorial #18 - Mutations
GraphQL Tutorial #18 - Mutations
Net Ninja
22 GraphQL Tutorial #19 - More on Mutations
GraphQL Tutorial #19 - More on Mutations
Net Ninja
23 GraphQL Tutorial #20 - Updating the Resolve Functions
GraphQL Tutorial #20 - Updating the Resolve Functions
Net Ninja
24 GraphQL Tutorial #21 - GraphQL NonNull
GraphQL Tutorial #21 - GraphQL NonNull
Net Ninja
25 GraphQL Tutorial #22 - Adding a Front-end
GraphQL Tutorial #22 - Adding a Front-end
Net Ninja
26 GraphQL Tutorial #23 - Create React App
GraphQL Tutorial #23 - Create React App
Net Ninja
27 GraphQL Tutorial #24 - Book List Component
GraphQL Tutorial #24 - Book List Component
Net Ninja
28 GraphQL Tutorial #25 - Apollo Client Setup
GraphQL Tutorial #25 - Apollo Client Setup
Net Ninja
29 GraphQL Tutorial #26 - Making Queries from React
GraphQL Tutorial #26 - Making Queries from React
Net Ninja
30 GraphQL Tutorial #27 - Rendering Data in a Component
GraphQL Tutorial #27 - Rendering Data in a Component
Net Ninja
31 GraphQL Tutorial #28 - Add Book Component
GraphQL Tutorial #28 - Add Book Component
Net Ninja
32 GraphQL Tutorial #29 - External Query File
GraphQL Tutorial #29 - External Query File
Net Ninja
33 GraphQL Tutorial #30 - Updating Component State
GraphQL Tutorial #30 - Updating Component State
Net Ninja
34 GraphQL Tutorial #31 - Composing Queries
GraphQL Tutorial #31 - Composing Queries
Net Ninja
35 GraphQL Tutorial #32 - query variables
GraphQL Tutorial #32 - query variables
Net Ninja
36 GraphQL Tutorial #33 - Re-fetching Queries
GraphQL Tutorial #33 - Re-fetching Queries
Net Ninja
37 GraphQL Tutorial #34 - Book Details Component
GraphQL Tutorial #34 - Book Details Component
Net Ninja
38 GraphQL Tutorial #36 - Styling the App
GraphQL Tutorial #36 - Styling the App
Net Ninja
39 GraphQL Tutorial #35 - Making a Single Query
GraphQL Tutorial #35 - Making a Single Query
Net Ninja
40 Build Apps with Vue & Firebase - Udemy Course
Build Apps with Vue & Firebase - Udemy Course
Net Ninja
41 Updated Vue & Firebase Course (Udemy)
Updated Vue & Firebase Course (Udemy)
Net Ninja
42 Vue & Firebase Real-time Chat (Preview) #1 - Intro
Vue & Firebase Real-time Chat (Preview) #1 - Intro
Net Ninja
43 Vue & Firebase Real-time Chat (Preview) #2 - Project Structure
Vue & Firebase Real-time Chat (Preview) #2 - Project Structure
Net Ninja
44 Vue & Firebase Real-time Chat (Preview) #3 - Firestore Setup
Vue & Firebase Real-time Chat (Preview) #3 - Firestore Setup
Net Ninja
45 Vue & Firebase Real-time Chat (Preview) #4 - Welcome Screen
Vue & Firebase Real-time Chat (Preview) #4 - Welcome Screen
Net Ninja
46 Vue & Firebase Real-time Chat (Preview) #5 - Props in Routes
Vue & Firebase Real-time Chat (Preview) #5 - Props in Routes
Net Ninja
47 Vue & Firebase Real-time Chat (Preview) #6 - Route Guards
Vue & Firebase Real-time Chat (Preview) #6 - Route Guards
Net Ninja
48 Vue & Firebase Real-time Chat (Preview) #7 - Chat Window
Vue & Firebase Real-time Chat (Preview) #7 - Chat Window
Net Ninja
49 Vue & Firebase Real-time Chat (Preview) #8 - New Message Component
Vue & Firebase Real-time Chat (Preview) #8 - New Message Component
Net Ninja
50 Object Oriented JavaScript Tutorial #1 - Introduction
Object Oriented JavaScript Tutorial #1 - Introduction
Net Ninja
51 Object Oriented JavaScript Tutorial #2 - Object Literals
Object Oriented JavaScript Tutorial #2 - Object Literals
Net Ninja
52 Object Oriented JavaScript Tutorial #3 - Updating Properties
Object Oriented JavaScript Tutorial #3 - Updating Properties
Net Ninja
53 Object Oriented JavaScript Tutorial #4 - Classes
Object Oriented JavaScript Tutorial #4 - Classes
Net Ninja
54 Object Oriented JavaScript Tutorial #5  - Class Constructors
Object Oriented JavaScript Tutorial #5 - Class Constructors
Net Ninja
55 Object Oriented JavaScript Tutorial #6 - Class Methods
Object Oriented JavaScript Tutorial #6 - Class Methods
Net Ninja
56 Object Oriented JavaScript Tutorial #7 - Method Chaining
Object Oriented JavaScript Tutorial #7 - Method Chaining
Net Ninja
57 Object Oriented JavaScript Tutorial #8 - Class Inheritance
Object Oriented JavaScript Tutorial #8 - Class Inheritance
Net Ninja
58 Object Oriented JavaScript Tutorial #9 - Constructors (under the hood)
Object Oriented JavaScript Tutorial #9 - Constructors (under the hood)
Net Ninja
59 Object Oriented JavaScript Tutorial #10 - Prototype
Object Oriented JavaScript Tutorial #10 - Prototype
Net Ninja
60 Object Oriented JavaScript Tutorial #11 - Prototype Inheritance
Object Oriented JavaScript Tutorial #11 - Prototype Inheritance
Net Ninja

Related AI Lessons

How to Create a Second Version of Yourself Inside Obsidian Using AI (Step-by-Step Guide)
Learn to create a second version of yourself inside Obsidian using AI with a step-by-step guide
Medium · ChatGPT
How to prepare for Spain civil service TIC exam using AI in 2026
Learn how to prepare for the Spain civil service TIC exam using AI in 2026, boosting your chances of success with technology-driven study techniques
Dev.to · David García
Going Viral! How I Created AI Kissing Videos Step by Step Easily Using AIAI.com
Create viral AI kissing videos using AIAI.com in a step-by-step process, leveraging AI technology for creative content creation
Medium · AI
How to prepare TIC teacher exams in Spain with AI (oposiciones 2026)
Prepare for TIC teacher exams in Spain using AI with these actionable steps
Dev.to AI
Up next
Low-Tech, High-Impact: Replacing Your Receptionist With a $15 AI Phone System
Maximum Lawyer
Watch →