import { TextStyle , ViewStyle } from 'react-native' ; import { config } from '../../constants/config' ; import { ResponsiveStyleSheet , ScaleByBreakpoints , ScaleByFactor , defaultHorizontalMarginByBreakpoints , } from '../../utils/responsive' ; export interface ReviewStrokeOrderStyles { container : ViewStyle ; title : TextStyle ; subtitle : TextStyle ; button_text : TextStyle ; } export class ReviewStrokeOrderResponsiveStyles extends ResponsiveStyleSheet < ReviewStrokeOrderStyles > { public baseStyles ( scaleByFactor , scaleByBreakpoints ) { return { container : { paddingHorizontal : scaleByBreakpoints ( defaultHorizontalMarginByBreakpoints ) , marginTop : scaleByFactor ( 10 ) , } , title : { fontSize : scaleByFactor ( 15 ) , fontWeight : 'bold' , } , subtitle : { fontSize : scaleByFactor ( 15 ) , } , button_text : { fontSize : scaleByFactor ( 15 ) , color : config . styles . primaryColor , } , } ; } public lightStyles ( ) { return { title : { color : config . styles . light . primaryTextColor , } , subtitle : { color : config . styles . light . secondaryTextColor , } , } ; } public darkStyles ( ) { return { title : { color : config . styles . dark . primaryTextColor , } , subtitle : { color : config . styles . dark . secondaryTextColor , } , } ; } } export const reviewStrokeOrderResponsiveStyles = new ReviewStrokeOrderResponsiveStyles ( ) ;