css

package
v0.8.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package css ...

Package css ...

Package css ...

Package css ...

Package css ...

Package css ...

Package css ...

Index

Constants

View Source
const (
	Bootstrap   string = "bootstrap"
	Bulma       string = "bulma"
	Scss        string = "scss"
	TailwindCSS string = "tailwindcss"
	VanillaCSS  string = "vanillacss"
)

CSS lib names

View Source
const (
	PackageJSONFileID    string = "package_json"
	AppHTMLFileID        string = "app_html"
	AppCSSFileID         string = "app_css"
	VariablesFileID      string = "variables_scss"
	LayoutFileID         string = "layout"
	SvelteConfigFileID   string = "svelte_config"
	ViteConfigFileID     string = "vite_config"
	HeroFileID           string = "hero"
	FooterFileID         string = "footer"
	TailwindConfigFileID string = "tailwind_css_config"
	PostCSSFileID        string = "postcss"
)

template file ids

Variables

AvailableCSSLib is the list of the available css libs.

Functions

This section is empty.

Types

type CSSLib

type CSSLib struct {
	Name    string
	EFS     *embed.FS
	FS      afero.Fs
	Config  *config.SveltinConfig
	TplData *config.TemplateData
}

CSSLib identifies the CSS lib to be used.

func NewBootstrap

func NewBootstrap(efs *embed.FS, fs afero.Fs, conf *config.SveltinConfig, tplData *config.TemplateData) *CSSLib

NewBootstrap returns a pointer to a CSSLib struct for Bootstrap.

func NewBulma

func NewBulma(efs *embed.FS, fs afero.Fs, conf *config.SveltinConfig, tplData *config.TemplateData) *CSSLib

NewBulma returns a pointer to a CSSLib struct for Bulma.

func NewScss

func NewScss(efs *embed.FS, fs afero.Fs, conf *config.SveltinConfig, tplData *config.TemplateData) *CSSLib

NewScss returns a pointer to a CSSLib struct for Scss.

func NewTailwindCSS

func NewTailwindCSS(efs *embed.FS, fs afero.Fs, conf *config.SveltinConfig, tplData *config.TemplateData) *CSSLib

NewTailwindCSS returns a pointer to a CSSLib struct for TailwindCSS.

func NewVanillaCSS

func NewVanillaCSS(efs *embed.FS, fs afero.Fs, conf *config.SveltinConfig, tplData *config.TemplateData) *CSSLib

NewVanillaCSS returns a pointer to a CSSLib struct for VanillaCSS.

func (*CSSLib) Setup

func (cssLib *CSSLib) Setup(isNewProject bool) error

Setup is responsible to create the files to setup the CSS Lib.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL