-
-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review VS Code Intellisense auto-complete for Tailwind classes #3193
Labels
feature request
Request a feature or introduce and update to the project.
Milestone
Comments
Until an automatic version is found - Here is a manual one that covers the current development state: "tailwindCSS.classAttributes": [
"class",
// Base
"base",
"padding",
"border",
"background",
"spaceY",
"rounded",
"width",
"widthExpanded",
"height",
"size",
"font",
"shadow",
"style",
"hover",
"active",
"flexDirection",
"classes",
// Fallback
"fallbackBase",
"fallbackClasses",
// Image
"imageBase",
"imageClasses",
// Control
"controlBase",
"controlGap",
"controlHover",
"controlInactive",
"controlActive",
"controlDisabled",
"controlWidth",
"controlHeight",
"controlPadding",
"controlRounded",
"controlHover",
"controlClasses",
// Lead
"leadBase",
"leadSpaceX",
"leadPadding",
"leadClasses",
// Center
"centerBase",
"centerAlign",
"centerPadding",
"centerClasses",
// Content
"contentBase",
"contentBackground",
"contentClasses",
// Indicator
"indicatorBase",
"indicatorBg",
"indicatorText",
"indicatorRounded",
"indicatorClasses",
// Panel
"panelBase",
"panelPadding",
"panelRounded",
"panelClasses",
// Toolbar
"toolbarBase",
"toolbarGridCols",
"toolbarGap",
"toolbarClasses",
// Trail
"trailBase",
"trailSpaceX",
"trailPadding",
"trailClasses",
// Headline
"headlineBase",
"headlineClasses",
// Interface
"interfaceBase",
"interfaceBg",
"interfaceBorder",
"interfaceBorderColor",
"interfacePadding",
"interfaceRounded",
"interfaceIcon",
"interfaceText",
"interfaceSubtext",
"interfaceClasses",
// FilesList
"filesListBase",
"filesListClasses",
// File
"fileBase",
"fileBg",
"fileGap",
"filePadding",
"fileRounded",
"fileIcon",
"fileName",
"fileSize",
"fileButton",
"fileClasses",
// State
"stateInfo",
"stateError",
"stateSuccess",
"stateActive",
"stateInactive",
"stateDisabled",
"stateInteractive",
"stateReadOnly",
"stateInvalid",
"stateFocused",
"stateDragging",
// StateLabel
"stateLabelInactive",
"stateLabelActive",
// Tiles
"tilesBase",
"tilesFlexDirection",
"tilesJustify",
"tilesItems",
"tilesGap",
"tilesClasses",
// Header
"headerBase",
"headerFlexDirection",
"headerJustify",
"headerItems",
"headerGap",
"headerClasses",
// Footer
"footerBase",
"footerFlexDirection",
"footerJustify",
"footerItems",
"footerGap",
"footerClasses",
// Expanded
"expandedPadding",
"expandedGap",
"expandedClasses",
// Label
"labelBase",
"labelText",
"labelFill",
"labelFontSize",
"labelFontWeight",
"labelClasses",
"labelExpandedBase",
"labelExpandedClasses",
// Button
"buttonBase",
"buttonActive",
"buttonInactive",
"buttonHover",
"buttonClasses",
// Track
"trackBase",
"trackStroke",
"trackBg",
"trackRounded",
"trackClasses",
// Meter
"meterBase",
"meterStroke",
"meterBg",
"meterRounded",
"meterTransition",
"meterAnimate",
"meterDuration",
"meterClasses",
// Children
"childrenBase",
"childrenClasses",
// SVG
"svgBase",
"svgClasses",
// Item
"itemBase",
"itemClasses",
// Orient
"orientVertical",
"orientHorizontal",
// Thumb
"thumbBase",
"thumbSize",
"thumbBg",
"thumbRingSize",
"thumbRingColor",
"thumbRounded",
"thumbCursor",
"thumbInactive",
"thumbActive",
"thumbTranslateX",
"thumbTransition",
"thumbEase",
"thumbDuration",
"thumbClasses",
// Markers
"markersBase",
"markersClasses",
// Mark
"markBase",
"markText",
"markOpacity",
"markClasses",
// Icon
"iconInactiveBase",
"iconActiveBase",
// List
"listBase",
"listJustify",
"listBorder",
"listMargin",
"listGap",
"listClasses",
// TagList
"tagListBase",
"tagListClasses",
// Tag
"tagBase",
"tagBackground",
"tagClasses",
// InputEdit
"inputEditBase",
// TagEdit
"tagEditBase",
"tagEditBackground",
// InputEdit
"inputEditClasses",
// ButtonDelete
"buttonDeleteBase",
"buttonDeleteClasses",
// Trigger
"triggerBase",
"triggerBackground",
"triggerClasses",
// Positioner
"positionerBase",
"positionerClasses",
// Arrow
"arrowBase",
"arrowBackground",
"arrowClasses",
// Group
"groupBase",
"groupZIndex",
"groupGap",
"groupClasses",
// Toast
"toastBase",
"toastPadding",
"toastGap",
"toastShadow",
"toastClasses",
// Message
"messageBase",
"messageTitle",
"messageDescription",
"messageClasses",
// btnDismiss
"btnDismissBase",
"btnDimissPreset",
"btnDismissHover",
"btnDismissClasses",
// Backdrop
"backdropClasses",
// ZIndex
"zIndex"
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the feature in detail (code, mocks, or screenshots encouraged)
In versions prior to Skeleton v3 we implemented a build-time process that would scan all components and generate a unique list of props that utilize the special
CssClass
type. This class simply represented a string, but by doing this we could generate a JSON file like this:https://raw.githubusercontent.com/skeletonlabs/skeleton/master/packages/skeleton/scripts/tw-settings.json
This was then used as part of the Skeleton CSA (aka v2 CLI) to insert this file into user's Skeleton project. This would live here:
By doing this, VS Code can identify all Skeleton props that should take CSS classes, allowing for Intellisense auto-complete.
Goal
In v3 we should try to find a way to generate similar JSON files for each component framework - since prop names can differ. Then providing a manual (but optional) onboarding step for users that wish to install this in their project and gain this functionality. Perhaps look at if similar functionality is available for other popular editors as well.
Then long term, we should revisit moving this to a dedicated Skeleton VS Code extension so users no longer have to manage this on their own.
What type of pull request would this be?
New Feature
Provide relevant links or additional information.
No response
The text was updated successfully, but these errors were encountered: