8000 feat: support more css props with latest core by NathanWalker · Pull Request #189 · NativeScript/tailwind · GitHub
[go: up one dir, main page]

Skip to content

feat: support more css props with latest core #189

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'main' into feat/supported-props-for-core
  • Loading branch information
NathanWalker authored Feb 7, 2025
commit 72ea798945d6e87bfd6ccc6eae977f579bc28b82
184 changes: 92 additions & 92 deletions src/removeUnsupported.js
8000
Original file line number Diff line number Diff line change
Expand Up @@ -158,98 +158,98 @@ module.exports = (options = { debug: false }) => {
module.exports.postcss = true;

const supportedProperties = {
'align-content': true,
'align-items': true,
'align-self': true,
'android-selected-tab-highlight-color': true,
'android-elevation': true,
'android-dynamic-elevation-offset': true,
'animation': true,
'animation-delay': true,
'animation-direction': true,
'animation-duration': true,
'animation-fill-mode': true,
'animation-iteration-count': true,
'animation-name': true,
'animation-timing-function': true,
'background': true,
'background-color': true,
'background-image': true,
'background-position': true,
'background-repeat': ['repeat', 'repeat-x', 'repeat-y', 'no-repeat'],
'background-size': true,
'border-bottom-color': true,
'border-bottom-left-radius': true,
'border-bottom-right-radius': true,
'border-bottom-width': true,
'border-color': true,
'border-left-color': true,
'border-left-width': true,
'border-radius': true,
'border-right-color< 8000 span class="x x-first x-last">': true,
'border-right-width': true,
'border-top-color': true,
'border-top-left-radius': true,
'border-top-right-radius': true,
'border-top-width': true,
'border-width': true,
'box-shadow': true,
'clip-path': true,
'color': true,
'flex': true,
'flex-grow': true,
'flex-direction': true,
'flex-shrink': true,
'flex-wrap': true,
'font': true,
'font-family': true,
'font-size': true,
'font-style': ['italic', 'normal'],
'font-weight': true,
'height': true,
'highlight-color': true,
'horizontal-align': ['left', 'center', 'right', 'stretch'],
'justify-content': true,
'justify-items': true,
'justify-self': true,
'letter-spacing': true,
'line-height': true,
'margin': true,
'margin-bottom': true,
'margin-left': true,
'margin-right': true,
'margin-top': true,
'min-height': true,
'min-width': true,
'off-background-color': true,
'opacity': true,
'order': true,
'padding': true,
'padding-bottom': true,
'padding-left': true,
'padding-right': true,
'padding-top': true,
'place-content': true,
'placeholder-color': true,
'place-items': true,
'place-self': true,
'selected-tab-text-color': true,
'tab-background-color': true,
'tab-text-color': true,
'tab-text-font-size': true,
'text-transform': true,
'text-align': ['left', 'center', 'right'],
'text-decoration': ['none', 'line-through', 'underline'],
'text-overflow': ['clip', 'ellipsis', 'initial', 'unset'],
'text-shadow': true,
'text-transform': ['none', 'capitalize', 'uppercase', 'lowercase'],
'transform': true,
'vertical-align': ['top', 'center', 'middle', 'bottom', 'stretch'],
'visibility': ['visible', 'collapse', 'hidden'],
'white-space': ['initial', 'normal', 'nowrap'],
'width': true,
'z-index': true,
}
"align-content": true,
"align-items": true,
"align-self": true,
"android-selected-tab-highlight-color": true,
"android-elevation": true,
"android-dynamic-elevation-offset": true,
animation: true,
"animation-delay": true,
"animation-direction": true,
"animation-duration": true,
"animation-fill-mode": true,
"animation-iteration-count": true,
"animation-name": true,
"animation-timing-function": true,
background: true,
"background-color": true,
"background-image": true,
"background-position": true,
"background-repeat": ["repeat", "repeat-x", "repeat-y", "no-repeat"],
"background-size": true,
"border-bottom-color": true,
"border-bottom-left-radius": true,
"border-bottom-right-radius": true,
"border-bottom-width": true,
"border-color": true,
"border-left-color": true,
"border-left-width": true,
"border-radius": true,
"border-right-color": true,
"border-right-width": true,
"border-top-color": true,
"border-top-left-radius": true,
"border-top-right-radius": true,
"border-top-width": true,
"border-width": true,
"box-shadow": true,
"clip-path": true,
color: true,
flex: true,
"flex-grow": true,
"flex-direction": true,
"flex-shrink": true,
"flex-wrap": true,
font: true,
"font-family": true,
"font-size": true,
"font-style": ["italic", "normal"],
"font-weight": true,
height: true,
"highlight-color": true,
"horizontal-align": ["left", "center", "right", "stretch"],
"justify-content": true,
"justify-items": true,
"justify-self": true,
"letter-spacing": true,
"line-height": true,
margin: true,
"margin-bottom": true,
"margin-left": true,
"margin-right": true,
"margin-top": true,
"min-height": true,
"min-width": true,
"off-background-color": true,
opacity: true,
order: true,
padding: true,
"padding-bottom": true,
"padding-left": true,
"padding-right": true,
"padding-top": true,
"place-content": true,
"placeholder-color": true,
"place-items": true,
"place-self": true,
"selected-tab-text-color": true,
"tab-background-color": true,
"tab-text-color": true,
"tab-text-font-size": true,
"text-overflow": true,
"text-transform": true,
"text-align": ["left", "center", "right"],
"text-decoration": ["none", "line-through", "underline"],
"text-shadow": true,
"text-transform": ["none", "capitalize", "uppercase", "lowercase"],
transform: true,
"vertical-align": ["top", "center", "middle", "bottom", "stretch"],
visibility: ["visible", "collapse", "hidden"],
"white-space": ["initial", "normal", "nowrap"],
width: true,
"z-index": true,
};

const unsupportedPseudoSelectors = [":focus-within", ":hover"];
const unsupportedValues = ["max-content", "min-content", "vh", "vw"];
You are viewing a condensed version of this merge commit. You can view the full changes here.
0