Skip to content

Commit

Permalink
Merge pull request #4 from gokhannozturk/feat/add-styles
Browse files Browse the repository at this point in the history
feat: adds tailwindcss
  • Loading branch information
gokh4nozturk authored Aug 16, 2022
2 parents 0496b8a + bc7be5e commit ebcda6b
Show file tree
Hide file tree
Showing 15 changed files with 2,470 additions and 2,452 deletions.
6 changes: 4 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ module.exports = {
{
singleQuote: true,
trailingComma: 'es5',
printWidth: 120,
printWidth: 80,
tabWidth: 2,
semi: true,
bracketSpacing: true,
arrowParens: 'always',
parser: 'typescript',
jsxBracketSameLine: false,

vueIndentScriptAndStyle: false,
},
],
},
Expand Down
Empty file added design-system-vue.d.ts
Empty file.
1 change: 1 addition & 0 deletions lib/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import '../src/index.css';
import HelloWorld from '../src/components/HelloWorld.vue';

export { HelloWorld };
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "design-system-vue",
"version": "0.0.0",
"version": "0.0.1",
"type": "module",
"files": [
"dist"
Expand Down Expand Up @@ -34,11 +34,14 @@
"@vue/eslint-config-typescript": "^11.0.0",
"@vue/test-utils": "^2.0.2",
"@vue/tsconfig": "^0.1.3",
"autoprefixer": "^10.4.8",
"eslint": "^8.21.0",
"eslint-plugin-vue": "^9.3.0",
"jsdom": "^20.0.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.16",
"prettier": "^2.7.1",
"tailwindcss": "^3.1.8",
"typescript": "~4.7.4",
"vite": "^3.0.4",
"vitest": "^0.21.0",
Expand Down
6 changes: 6 additions & 0 deletions postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
52 changes: 2 additions & 50 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,55 +1,7 @@
<script setup lang="ts">
// import HelloWorld from './components/HelloWorld.vue';
import TheWelcome from './components/TheWelcome.vue';
import { HelloWorld as HelloWorld2 } from '../dist/design-system-vue.js';
import { HelloWorld } from '../dist/design-system-vue.js';
</script>

<template>
<header>
<img
alt="Vue logo"
class="logo"
src="./assets/logo.svg"
width="125"
height="125"
/>

<div class="wrapper">
<!-- <HelloWorld msg="You did it!" /> -->
<HelloWorld2 msg="ben kit" />
</div>
</header>

<main>
<TheWelcome />
</main>
<HelloWorld msg="ben kit" class="text-3xl font-bold underline" />
</template>

<style scoped>
header {
line-height: 1.5;
}
.logo {
display: block;
margin: 0 auto 2rem;
}
@media (min-width: 1024px) {
header {
display: flex;
place-items: center;
padding-right: calc(var(--section-gap) / 2);
}
.logo {
margin: 0 2rem 0 0;
}
header .wrapper {
display: flex;
place-items: flex-start;
flex-wrap: wrap;
}
}
</style>
74 changes: 0 additions & 74 deletions src/assets/base.css

This file was deleted.

35 changes: 0 additions & 35 deletions src/assets/main.css

This file was deleted.

29 changes: 0 additions & 29 deletions src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,5 @@ defineProps<{
<template>
<div class="greetings">
<h1 class="green">{{ msg }}</h1>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
<a target="_blank" href="https://vuejs.org/">Vue 3</a>.
</h3>
</div>
</template>

<style scoped>
h1 {
font-weight: 500;
font-size: 2.6rem;
top: -10px;
}
h3 {
font-size: 1.2rem;
}
.greetings h1,
.greetings h3 {
text-align: center;
}
@media (min-width: 1024px) {
.greetings h1,
.greetings h3 {
text-align: left;
}
}
</style>
84 changes: 0 additions & 84 deletions src/components/TheWelcome.vue

This file was deleted.

Loading

0 comments on commit ebcda6b

Please # to comment.