Skip to content

Commit

Permalink
Merge pull request #42 from ojvribeiro/fix-remove-default-dark-style
Browse files Browse the repository at this point in the history
fix(template): remove default hard-coded dark styles
  • Loading branch information
ojvribeiro committed Sep 26, 2022
2 parents fd23396 + 5b445ee commit 1066d4c
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 50 deletions.
50 changes: 50 additions & 0 deletions .vulmix/components/VulmixWelcome.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<template>
<div class="p-6 space-y-6 bg-zinc-800 text-white h-full">
<h1 class="text-5xl">Home</h1>

<MyComponent />

<p>And some <Link to="/test-page">Test Page</Link></p>
<p>And some <Link to="/non-existing-page">404 page</Link></p>
</div>
</template>

<style scoped lang="scss">
// Importing Sass utilities
@import '@/assets/sass/utils';
h1 {
color: #d43d3d;
// Using breakpoint based media-queries
@include media(sm) {
color: #3b3bcc;
}
@include media(md) {
color: #ff0062;
}
@include media(lg) {
color: #c78800;
}
@include media(xl) {
color: #00a767;
}
@include media('2xl') {
color: #c850cc;
}
@include media('3xl') {
// Using the `color` function to get a color
// from the ./assets/sass/_variables.scss color palette.
color: color(sample-gold-400);
}
}
a {
@apply text-blue-400;
}
</style>
3 changes: 1 addition & 2 deletions assets/sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

html,
body {
background-color: #222;
color: #fff;
height: 100%;
}
49 changes: 1 addition & 48 deletions pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,50 +1,3 @@
<template>
<div class="p-6 space-y-6">
<h1 class="text-5xl">Home</h1>

<MyComponent />

<p>And some <Link to="/test-page">Test Page</Link></p>
<p>And some <Link to="/non-existing-page">404 page</Link></p>
</div>
<VulmixWelcome />
</template>

<style scoped lang="scss">
// Importing Sass utilities
@import '@/assets/sass/utils';
h1 {
color: #d43d3d;
// Using breakpoint based media-queries
@include media(sm) {
color: #3b3bcc;
}
@include media(md) {
color: #ff0062;
}
@include media(lg) {
color: #c78800;
}
@include media(xl) {
color: #00a767;
}
@include media('2xl') {
color: #c850cc;
}
@include media('3xl') {
// Using the `color` function to get a color
// from the ./assets/sass/_variables.scss color palette.
color: color(sample-gold-400);
}
}
a {
@apply text-blue-400;
}
</style>

1 comment on commit 1066d4c

@vercel
Copy link

@vercel vercel bot commented on 1066d4c Sep 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vulmix – ./

vulmix-ojvribeiro.vercel.app
vulmix.vercel.app
vulmix-git-main-ojvribeiro.vercel.app

Please sign in to comment.