Add TailwindCSS (#1252)

* Setup TailwindCSS

* Fully setup configuration

* Refactor some tailwind variables
This commit is contained in:
Evan Song
2024-07-06 20:57:32 -07:00
committed by GitHub
parent 0f2ddb452c
commit abec2e48d4
176 changed files with 7905 additions and 7433 deletions

View File

@@ -15,7 +15,7 @@ export default {
categories: {
type: Array,
default() {
return []
return [];
},
},
type: {
@@ -24,9 +24,9 @@ export default {
},
},
setup() {
const tags = useTags()
const tags = useTags();
return { tags }
return { tags };
},
computed: {
categoriesFiltered() {
@@ -34,11 +34,11 @@ export default {
.concat(this.tags.loaders)
.filter(
(x) =>
this.categories.includes(x.name) && (!x.project_type || x.project_type === this.type)
)
this.categories.includes(x.name) && (!x.project_type || x.project_type === this.type),
);
},
},
}
};
</script>
<style lang="scss" scoped>

View File

@@ -16,7 +16,7 @@
</template>
<script>
import Checkbox from '~/components/ui/Checkbox.vue'
import Checkbox from "~/components/ui/Checkbox.vue";
export default {
components: {
@@ -25,30 +25,30 @@ export default {
props: {
facetName: {
type: String,
default: '',
default: "",
},
displayName: {
type: String,
default: '',
default: "",
},
icon: {
type: String,
default: '',
default: "",
},
activeFilters: {
type: Array,
default() {
return []
return [];
},
},
},
emits: ['toggle'],
emits: ["toggle"],
methods: {
toggle() {
this.$emit('toggle', this.facetName)
this.$emit("toggle", this.facetName);
},
},
}
};
</script>
<style lang="scss" scoped>